X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/482c839ccfd3766b20813dbf40362d48a6aa4d28..fa8171b9c389b461ecd87a6b4b1a4550a4b144ba:/catalogue/management/commands/republish.py?ds=sidebyside diff --git a/catalogue/management/commands/republish.py b/catalogue/management/commands/republish.py index 12ee480..48f9345 100644 --- a/catalogue/management/commands/republish.py +++ b/catalogue/management/commands/republish.py @@ -39,7 +39,8 @@ class Command(BaseCommand): 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()