Hello,I have noticed that the available permissions list, which can be set to users/groups in the admin doesn't match my models. This happened after a few standard migrations, where some models were renamed, some deleted, and new models were added. The list is basically not updated, and represents a mixed state of the db, before and after the above migrations.
manage.py inspectdb show the CORRECT state of the database.
I have tried to follow the following solution, which basically didn't do much.
from django.contrib.auth.management import create_permissions
from django.apps import apps
create_permissions(apps.get_app_config('my_app_name'))
I will appreciate your help.
Best,
Yevgeny.