소스 검색

Update jet_custom_apps_example.py (#122)

Thomas Meitz 8 년 전
부모
커밋
707ad89e40
1개의 변경된 파일6개의 추가작업 그리고 1개의 파일을 삭제
  1. 6 1
      jet/management/commands/jet_custom_apps_example.py

+ 6 - 1
jet/management/commands/jet_custom_apps_example.py

@@ -9,7 +9,12 @@ from jet.utils import get_app_list
 class Command(NoArgsCommand):
     help = 'Generates example of JET custom apps setting'
     item_order = 0
-
+    
+    def handle(self, *args, **options):
+        if args:
+            raise CommandError("Command doesn't accept any arguments")
+        return self.handle_noargs(**options)
+    
     def handle_noargs(self, **options):
         class User:
             is_active = True