#27231: Initialize forms in ModelAdmin like View (i.e. add get_form_kwargs to
contrib.admin)
----------------------------------+--------------------------------------
Reporter: thauk-copperleaf | Owner: nobody
Type: Uncategorized | Status: new
Component: contrib.admin | Version: 1.10
Severity: Normal | Resolution:
Keywords: | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Comment (by timgraham):
What I mean is that if we add a hook for form initialization, couldn't
that include specifying some custom kwargs? It might be overengineering to
add two hooks -- `ModelAdmin` is already very complex with a large number
of hooks.
Can you make customizations in `Form.__init__()` using `self.instance`?
--
Ticket URL: <https://code.djangoproject.com/ticket/27231#comment:4>
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 unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/074.e30b14628b4740ea471d5345acf8bfd9%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.