mirror of
https://github.com/pretix/pretix.git
synced 2026-05-09 15:54:03 +00:00
Drop periodic_task call from rebuild command
This commit is contained in:
@@ -1,14 +1,11 @@
|
|||||||
from django.core.management import call_command
|
from django.core.management import call_command
|
||||||
from django.core.management.base import BaseCommand
|
from django.core.management.base import BaseCommand
|
||||||
|
|
||||||
from ...signals import periodic_task
|
|
||||||
|
|
||||||
|
|
||||||
class Command(BaseCommand):
|
class Command(BaseCommand):
|
||||||
help = "Rebuild static files and language files"
|
help = "Rebuild static files and language files"
|
||||||
|
|
||||||
def handle(self, *args, **options):
|
def handle(self, *args, **options):
|
||||||
periodic_task.send(self)
|
|
||||||
call_command('compilemessages', verbosity=1, interactive=False)
|
call_command('compilemessages', verbosity=1, interactive=False)
|
||||||
call_command('compilejsi18n', verbosity=1, interactive=False)
|
call_command('compilejsi18n', verbosity=1, interactive=False)
|
||||||
call_command('compilejsi18n', locale='de-informal', verbosity=1, interactive=False)
|
call_command('compilejsi18n', locale='de-informal', verbosity=1, interactive=False)
|
||||||
|
|||||||
Reference in New Issue
Block a user