#23934: A bug in _create_formsets causes ModelAdmin methods to receive wrong
argument values
-------------------------------------+-------------------------------------
Reporter: kbr- | Owner: nobody
Type: Bug | Status: new
Component: contrib.admin | Version: 1.7
Severity: Normal | Resolution:
Keywords: ModelAdmin admin | Triage Stage:
add_view | Unreviewed
Has patch: 1 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
Comment (by kbr-):
Yes. As I said, in 1.6, the get_formsets ModelAdmin method had obj==None
if and only if we were "adding". Basing on that we could, for example,
decide if we want to edit particular inlines during addition (it's the
example given in the documentation:
https://docs.djangoproject.com/en/1.7/ref/contrib/admin/#django.contrib.admin.ModelAdmin.get_formsets;
the same example should work for 1.7).
--
Ticket URL: <https://code.djangoproject.com/ticket/23934#comment:3>
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/062.4be2d81b77de3d4f04ddc03c75b00a88%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.