Ticket #5919: 09-inline-parent-instance.diff
| File 09-inline-parent-instance.diff, 0.6 kB (added by Petr Marhoun <petr.marhoun@gmail.com>, 1 year ago) |
|---|
-
django/newforms/models.py
old new 361 361 362 362 class InlineFormset(BaseModelFormSet): 363 363 """A formset for child objects related to a parent.""" 364 def __init__(self, instance , data=None, files=None):364 def __init__(self, instance=None, data=None, files=None): 365 365 from django.db.models.fields.related import RelatedObject 366 366 self.instance = instance 367 367 # is there a better way to get the object descriptor?
