Django 2.1.4: Permissions are not updated after migrations

2019-03-17 Thread Yevgeny Bar Lev
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 represe

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-17 Thread Yevgeny Bar Lev
] https://github.com/django/django/pull/10540 > > Le dimanche 17 mars 2019 13:31:16 UTC-4, Yevgeny Bar Lev a écrit : >> >> 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 happene

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-18 Thread Yevgeny Bar Lev
gt; > Best, > Simon > > [0] > https://docs.djangoproject.com/en/2.1/ref/django-admin/#django-contrib-contenttypes > > Le dimanche 17 mars 2019 15:52:45 UTC-4, Yevgeny Bar Lev a écrit : >> >> Thanks Simon. Is there some nonmagical solution? I mean, is it possib

Re: Django 2.1.4: Permissions are not updated after migrations

2019-03-18 Thread Yevgeny Bar Lev
el? > > They point to models through the Permission.content_type foreign key; > ContentType have an (app_label, model_name) > unique tuple. > > Best, > Simon > > > > Le lundi 18 mars 2019 04:35:55 UTC-4, Yevgeny Bar Lev a écrit : >> >> Thanks Simon! >>