Browse Source

Merge branch 'dev' of github.com:geex-arts/django-jet into dev

Denis K 8 years ago
parent
commit
3adf215d2c
1 changed files with 11 additions and 2 deletions
  1. 11 2
      jet/management/commands/jet_custom_apps_example.py

+ 11 - 2
jet/management/commands/jet_custom_apps_example.py

@@ -1,11 +1,20 @@
-from django.core.management.base import NoArgsCommand
+try:
+    from django.core.management.base import NoArgsCommand
+except ImportError:
+    from django.core.management import BaseCommand as NoArgsCommand
+
 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