Skip to content
Snippets Groups Projects
Commit d859205b authored by Jonathan Weth's avatar Jonathan Weth :keyboard:
Browse files

Remove plan and apps as positional arguments of post_migrate

parent 466a6e29
No related branches found
No related tags found
1 merge request!569Resolve "post_migrate expects too many arguments"
Pipeline #7052 passed
from typing import Any, List, Optional, Tuple
from typing import Any, Optional
import django.apps
from django.apps import apps
......@@ -107,11 +107,9 @@ class CoreConfig(AppConfig):
verbosity: int,
interactive: bool,
using: str,
plan: List[Tuple],
apps: django.apps.registry.Apps,
**kwargs,
) -> None:
super().post_migrate(app_config, verbosity, interactive, using, plan, apps)
super().post_migrate(app_config, verbosity, interactive, using, **kwargs)
# Ensure presence of an OTP YubiKey default config
apps.get_model("otp_yubikey", "ValidationService").objects.using(using).update_or_create(
......
......@@ -186,8 +186,6 @@ class AppConfig(django.apps.AppConfig):
verbosity: int,
interactive: bool,
using: str,
plan: List[Tuple],
apps: django.apps.registry.Apps,
**kwargs,
) -> None:
"""Call on every app instance after its models have been migrated.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment