1616from django_managerie .managerie import Managerie
1717
1818
19- class MenagerieBaseMixin :
19+ class ManagerieBaseMixin :
2020 managerie : Optional [Managerie ] = None
2121 kwargs : Dict [str , Any ]
2222 _app : Optional [AppConfig ]
@@ -43,7 +43,7 @@ def dispatch(self, request, *args, **kwargs):
4343 return super ().dispatch (request , * args , ** kwargs )
4444
4545
46- class ManagerieListView (MenagerieBaseMixin , StaffRequiredMixin , TemplateView ):
46+ class ManagerieListView (ManagerieBaseMixin , StaffRequiredMixin , TemplateView ):
4747 template_name = "django_managerie/admin/list.html"
4848
4949 def get_context_data (self , ** kwargs ) -> Dict [str , Any ]:
@@ -66,7 +66,7 @@ def get_context_data(self, **kwargs) -> Dict[str, Any]:
6666 return context
6767
6868
69- class ManagerieCommandView (MenagerieBaseMixin , StaffRequiredMixin , FormView ):
69+ class ManagerieCommandView (ManagerieBaseMixin , StaffRequiredMixin , FormView ):
7070 template_name = "django_managerie/admin/command.html"
7171
7272 @property
@@ -84,7 +84,7 @@ def get_command_object(self) -> ManagementCommand:
8484 )[self .command_name ]
8585 except KeyError :
8686 raise Http404 (
87- f"Command { self .command_name } not found in { app .label } " f" (or you don't have permission to run it)" ,
87+ f"Command { self .command_name } not found in { app .label } (or you don't have permission to run it)" ,
8888 )
8989
9090 def get_form (self , form_class = None ) -> ArgumentParserForm :
0 commit comments