X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/a6f780f0af1886447399563c9abc053e517d4ca0..56fdd60e7a54f19cd9fc10db475688a557ed7df7:/catalogue/management/commands/republish.py?ds=inline diff --git a/catalogue/management/commands/republish.py b/catalogue/management/commands/republish.py index 941458f..48f9345 100644 --- a/catalogue/management/commands/republish.py +++ b/catalogue/management/commands/republish.py @@ -39,6 +39,8 @@ class Command(BaseCommand): print '!!!!!! PARSE ERROR !!!!!!' print e - print 'Rebuilding levels...' - for level in Level.objects.all(): - level.build_packages() + if options.get('repackage'): + print 'Rebuilding levels...' + for level in Level.objects.all(): + print level.name + level.build_packages()