#18388: problematic code in InlineModelAdmin -------------------------------+-------------------- Reporter: d.willy.c.c@… | Owner: nobody Type: New feature | Status: new Component: contrib.admin | Version: 1.4 Severity: Normal | Keywords: Triage Stage: Unreviewed | Has patch: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------+-------------------- in class InlineModelAdmin and def get_formset in line 1401 defaults = { "form": self.form, "formset": self.formset, "fk_name": self.fk_name, "fields": fields, "exclude": exclude, "formfield_callback": partial(self.formfield_for_dbfield, request=request), "extra": self.extra, "max_num": self.max_num, "can_delete": can_delete, } I think that is more customizable code should be as follows "form": self.form, "formset": self.formset, "fk_name": self.fk_name, "fields": fields, "exclude": exclude, "formfield_callback": partial(self.formfield_for_dbfield, request=request), "extra": '''self.get_extra()''', "max_num": '''self.get_max_num()''', "can_delete": can_delete,
-- Ticket URL: <https://code.djangoproject.com/ticket/18388> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.