#15522: delete_model on admin delete action
-------------------------------------+-------------------------------------
               Reporter:  Divad      |        Owner:  nobody
                 Status:  reopened   |    Milestone:
              Component:             |      Version:  SVN
  django.contrib.admin               |     Keywords:  delete_model
             Resolution:             |    Has patch:  1
           Triage Stage:  Accepted   |  Needs tests:  1
    Needs documentation:  1          |
Patch needs improvement:  1          |
-------------------------------------+-------------------------------------

Comment (by Divad <david@…>):

 The {{{def delete_model(self, request, obj)}}} is attached with a class
 inherited from {{{admin.ModelAdmin}}}.

 So my original idea of changing bulk delete with {{{queryset.delete()}}}
 to a {{{modeladmin.delete_model(request,obj)}}} for each object.

 I realize that this can be inefficient but is the only way to ensure
 consistent behavior for both ways of deleting in admin.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/15522#comment:6>
Django <http://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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to