enable new forms
[edumed.git] / catalogue / management / commands / republish.py
index 12ee480..48f9345 100644 (file)
@@ -39,7 +39,8 @@ class Command(BaseCommand):
                 print '!!!!!! PARSE ERROR !!!!!!'
                 print e
 
                 print '!!!!!! PARSE ERROR !!!!!!'
                 print e
 
-        print 'Rebuilding levels...'
-        for level in Level.objects.all():
-            print level.name
-            level.build_packages()
+        if options.get('repackage'):
+            print 'Rebuilding levels...'
+            for level in Level.objects.all():
+                print level.name
+                level.build_packages()