Ticket #5919: 09-inline-parent-instance.diff
File 09-inline-parent-instance.diff, 566 bytes (added by , 17 years ago) |
---|
-
django/newforms/models.py
=== modified file 'django/newforms/models.py'
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?