Added runtime SASS compliation and color settings

This commit is contained in:
Raphael Michel
2016-07-29 20:15:13 +02:00
parent 1b3cacb196
commit d32c1bd9c8
17 changed files with 170 additions and 6 deletions

View File

@@ -0,0 +1,13 @@
from django.core.management.base import BaseCommand
from pretix.base.models import EventSetting
from ...style import regenerate_css
class Command(BaseCommand):
help = "Re-generate all custom stylesheets"
def handle(self, *args, **options):
for es in EventSetting.objects.filter(key="presale_css_file"):
regenerate_css(es.object_id)