X-Git-Url: https://git.mdrn.pl/edumed.git/blobdiff_plain/d0f0e1412cc42d366b234e798dfb68feed05d751..d555d988764995ea1f9f5ece46f453a66f09b334:/src/catalogue/management/commands/repackage.py diff --git a/src/catalogue/management/commands/repackage.py b/src/catalogue/management/commands/repackage.py new file mode 100755 index 0000000..a2851f6 --- /dev/null +++ b/src/catalogue/management/commands/repackage.py @@ -0,0 +1,15 @@ +# -*- coding: utf-8 -*- +# This file is part of EduMed, licensed under GNU Affero GPLv3 or later. +# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information. +# +from django.core.management.base import BaseCommand + + +class Command(BaseCommand): + help = 'Rebuilds downloadable packages.' + + def handle(self, **options): + from curriculum.models import Level + + for level in Level.objects.all(): + level.build_packages()