@csrf_protect_m<EOL><INDENT>@transaction.atomic<EOL>def delete_view(self, request, object_id, extra_context=None):<DEDENT>
queryset = self.model._default_manager.filter(pk=object_id)<EOL>response = self.delete_selected(request, queryset)<EOL>if response:<EOL><INDENT>return response<EOL><DEDENT>url = reverse('<STR_LIT>' % (self.model._meta.app_label, self.model._meta.model_name))<EOL>return HttpResponseRedirect(url)<EOL>
The 'delete' admin view for this model.