[Answered ]-Why is Permission table populated in test database, while others aren't (django python)?

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.

Docs

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

Leave a comment