Ticket #10379: fix-genericinline-max_num-against-9922.patch

File fix-genericinline-max_num-against-9922.patch, 552 bytes (added by Vitek Pliska, 11 years ago)
  • django/contrib/contenttypes/generic.py

    diff --git a/django/contrib/contenttypes/generic.py b/django/contrib/contenttypes/generic.py
    index 13e7cd7..a4a0663 100644
    a b class GenericInlineModelAdmin(InlineModelAdmin): 
    374374            "formfield_callback": self.formfield_for_dbfield,
    375375            "formset": self.formset,
    376376            "extra": self.extra,
     377            "max_num": self.max_num,
    377378            "can_delete": True,
    378379            "can_order": False,
    379380            "fields": fields,
Back to Top