Skip to content

Commit

Permalink
Fix Flake8 formatting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Xalph555 committed Aug 28, 2023
1 parent a8a86f1 commit 47c349a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions safedelete/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class SafeDeleteAdmin(admin.ModelAdmin):
"""
undelete_selected_confirmation_template = "safedelete/undelete_selected_confirmation.html"
hard_delete_selected_confirmation_template = "safedelete/hard_delete_selected_confirmation.html"


list_display = (FIELD_NAME,)
list_filter = (FIELD_NAME,)
Expand Down Expand Up @@ -196,7 +195,7 @@ def undelete_selected(self, request, queryset):
self.undelete_selected_confirmation_template,
context,
)

def hard_delete_soft_deleted(self, request, queryset):
"""Admin action to hard delete soft deleted records"""

Expand Down
2 changes: 1 addition & 1 deletion safedelete/tests/test_admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,4 @@ def test_admin_hard_delete_soft_deleted_action(self):
})

with self.assertRaises(Category.DoesNotExist):
Category.objects.get(pk=self.categories[1].pk)
Category.objects.get(pk=self.categories[1].pk)

0 comments on commit 47c349a

Please sign in to comment.