Thanks Simon. Is there some nonmagical solution? I mean, is it possible to
fix some of the permissions manually without breaking stuff?

On Sun, Mar 17, 2019, 9:21 PM Simon Charette <charett...@gmail.com> wrote:

> Hello Yevgeny,
>
> I don't have magic solution to suggest to you given the current state of
> your
> permission data after a few iterations but I just wanted to let you know
> that
> it's a known issue[0] and a contributor is actively working on getting it
> fixed[1].
>
> Cheers,
> Simon
>
> [0] https://code.djangoproject.com/ticket/29843
> [1] 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 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_permissionsfrom 
>> django.apps import apps
>>
>> create_permissions(apps.get_app_config('my_app_name'))
>>
>> I will appreciate your help.
>> Best,
>> Yevgeny.
>>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to django-users+unsubscr...@googlegroups.com.
> To post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/9c49dff1-c6b1-43e6-818d-f56ab761558d%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/9c49dff1-c6b1-43e6-818d-f56ab761558d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAEBarV0ePqn3DJi3Q3euBStTq7X7nUWLtdLXmrMHeneoRyjrVw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to