diff --git a/src/pretix/base/management/commands/makemigrations.py b/src/pretix/base/management/commands/makemigrations.py index 7b88011fbd..b5e7c781b9 100644 --- a/src/pretix/base/management/commands/makemigrations.py +++ b/src/pretix/base/management/commands/makemigrations.py @@ -36,8 +36,9 @@ from django.core.management.commands.makemigrations import Command as Parent from ._migrations import monkeypatch_migrations -monkeypatch_migrations() - class Command(Parent): - pass + + def handle(self, *args, **kwargs): + monkeypatch_migrations() + return super().handle(*args, **kwargs)