Skip to content

Commit

Permalink
Merge pull request #633 from mymusise/django2
Browse files Browse the repository at this point in the history
fix bug when using `get_deleted_objects` function
  • Loading branch information
wgbbiao authored Oct 31, 2018
2 parents 33356ce + 375db83 commit 47481fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions xadmin/plugins/actions.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ def do_action(self, queryset):
deletable_objects, model_count, perms_needed, protected = get_deleted_objects(
queryset, self.opts, self.user, self.admin_site, using)


# The user has already confirmed the deletion.
# Do the deletion and return a None to display the change list view again.
if self.request.POST.get('post'):
Expand Down

0 comments on commit 47481fe

Please sign in to comment.