mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Added runtime SASS compliation and color settings
This commit is contained in:
0
src/pretix/presale/management/__init__.py
Normal file
0
src/pretix/presale/management/__init__.py
Normal file
0
src/pretix/presale/management/commands/__init__.py
Normal file
0
src/pretix/presale/management/commands/__init__.py
Normal file
13
src/pretix/presale/management/commands/updatestyles.py
Normal file
13
src/pretix/presale/management/commands/updatestyles.py
Normal 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)
|
||||
Reference in New Issue
Block a user