Skip to content

Commit

Permalink
Merge pull request #573 from pinerojuancruz/patch-1
Browse files Browse the repository at this point in the history
Update admin.py
  • Loading branch information
craigds committed Jun 16, 2017
2 parents daf9361 + a526cbe commit 803bfed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mptt/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def delete_selected_tree(self, modeladmin, request, queryset):

def get_actions(self, request):
actions = super(MPTTModelAdmin, self).get_actions(request)
if 'delete_selected' in actions:
if actions is not None and 'delete_selected' in actions:
actions['delete_selected'] = (
self.delete_selected_tree,
'delete_selected',
Expand Down

0 comments on commit 803bfed

Please sign in to comment.