Is there a way I can remove all the permission that Django creates by default and prevent it from creating them again?
Currently I have a migration that runs a Permission.objects.all().delete()
and I also have added default_permissions = ()
to the Meta
class of all my models, and yet once I run the migration, the permissions disappear for a second, and then Django recreates them (I know it's a genuine recreation because the ID of each permission increases each time I run the migration).
So, is there a way I can completely disable automatic permission creation? Note that I'm saying disable creation, not hiding permissions (which I already know how to do).