1👍
✅
Permissions are created when you run manage.py migrate
, there is a signal handler that listens to the post_migrate
signal and creates these permissions for every new model.
The ContentType table will also be populated in a similar manner
When you run your tests, your test DB will have your migrations applied to it
Source:stackexchange.com