File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3+ from collections .abc import Iterable
4+
35from cms .admin .utils import GrouperModelAdmin
46from cms .utils .permissions import get_model_permission_codename
57from cms .utils .urlutils import admin_reverse
@@ -74,12 +76,12 @@ def get_actions_list(self) -> list:
7476 """Add alias usage list actions"""
7577 return super ().get_actions_list () + [self ._get_alias_usage_link , self ._get_alias_delete_link ]
7678
77- def get_queryset (self , request ) :
79+ def get_queryset (self , request : HttpRequest ) -> models . QuerySet :
7880 qs = super ().get_queryset (request )
7981 # Annotate each Alias with a boolean indicating if related cmsplugins exist
8082 return qs .annotate (cmsplugins_count = models .Count ("cms_plugins" ))
8183
82- def get_list_display (self , request ) :
84+ def get_list_display (self , request : HttpRequest ) -> Iterable [ str ] :
8385 list_display = super ().get_list_display (request )
8486 if hasattr (self , "get_author" ):
8587 list_display = list (list_display )
You can’t perform that action at this time.
0 commit comments