-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Remove tasks references from api * Remove settings from main * Remove tasks from helm
- Loading branch information
Showing
10 changed files
with
0 additions
and
264 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,10 @@ | ||
"""Applications.""" | ||
|
||
from django.apps import AppConfig | ||
from django.db.models.signals import post_migrate | ||
|
||
|
||
def on_migrations_applied(sender, **kwargs): # pylint: disable=unused-argument | ||
""" | ||
This method will run tasks to populate the DB after the migration | ||
""" | ||
# This import may be here for the correct initialization of the App | ||
from api.tasks import ( # pylint: disable=import-outside-toplevel | ||
programs, | ||
providers, | ||
) | ||
|
||
providers.assign_admin_groups() | ||
programs.assign_run_permission() | ||
|
||
|
||
class ApiConfig(AppConfig): | ||
"""ApiConfig.""" | ||
|
||
default_auto_field = "django.db.models.BigAutoField" | ||
name = "api" | ||
|
||
def ready(self): | ||
post_migrate.connect(on_migrations_applied, sender=self) |
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.