I am currently extending django.contrib.auth
. One of the features I need is generating Groups and associated Permissions based on some rules defined in project settings.
The perfect place to do so would be the post_migrate signal. However, django.contrib.auth
has a post_migrate
receiver (connected here) that runs create_permissions
(here).
Since I rely on permissions generated by django.contrib.auth
, I need to ensure that my create_groups
always runs after the permissions were created by django.contrib.auth
create_permissions
.
What would be the best approach to do so?