forked from CGM_Public/pretix_original
14 lines
385 B
Python
14 lines
385 B
Python
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.apply_async(args=(es.object_id,))
|