File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 33from django .conf import settings
44from django .contrib import admin
55from django .contrib .admin import helpers
6- from django .contrib .admin .utils import unquote , quote
6+ from django .contrib .admin .utils import quote , unquote
77from django .contrib .admin .views .main import ChangeList
88from django .contrib .auth import get_permission_codename
99from django .core .exceptions import PermissionDenied
@@ -312,13 +312,11 @@ class SimpleHistoryShowDeletedFilter(admin.SimpleListFilter):
312312 parameter_name = "entries"
313313
314314 def lookups (self , request , model_admin ):
315- return (
316- ("deleted_only" , "Only Deleted" ),
317- )
315+ return (("deleted_only" , "Only Deleted" ),)
318316
319317 def queryset (self , request , queryset ):
320318 if self .value ():
321- return queryset .model .history .filter (history_type = '-' ).latest_of_each ()
319+ return queryset .model .history .filter (history_type = "-" ).latest_of_each ()
322320 return queryset
323321
324322
You can’t perform that action at this time.
0 commit comments