#24718: Inconsistent Behavior by Admin when Creating vs Deleting Objects
-------------------------------+--------------------
Reporter: cancan101 | Owner: nobody
Type: Uncategorized | Status: new
Component: Uncategorized | Version: 1.8
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------+--------------------
The Django Admin exhibits inconsistent behavior as far as how it uses the
Model Manager / QuerySet for creating vs. deleting objects.
When an instance is deleted (whether one instance from the item view) or
multiple instance from the list view, the admin uses the QuerySet's delete
method.
On the other hand, when an instance is created, the admin bypasses using
the model manager's create method requiring workarounds like
(http://stackoverflow.com/questions/29114634/django-admin-not-using-
modelmanagers-create-method).
I propose using the Model Manager's `create` method when creating a model.
--
Ticket URL: <https://code.djangoproject.com/ticket/24718>
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/052.c8296949fe0d39271287652435a7d61e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.