FWIF, I wrote a custom data migration to update the Permission model.

My OP is attempting to suggest that migrations should handle this 
automatically.

On Friday, March 30, 2018 at 5:43:39 PM UTC-4, Yo-Yo Ma wrote:
>
> A model with a custom permission:
>
> class *Spam*(Model):
>     class *Meta*:
>         permissions = (('spam', 'Can eat spam'),)
>
> ...
>
>     $ manage.py makemigrations
>     $ manage.py migrate
>
> Now we have a custom permission in the User admin:
>
>     foods | spam | Can eat spam
>
> Then update the permission's verbose name:
>
> class *Spam*(Model):
>     class *Meta*:
>         permissions = (('spam', 'Can cook AND eat spam'),)
>
> ...
>
>     $ manage.py makemigrations
>     $ manage.py migrate
>
> The permission's description change is not reflected in the admin:
>
>     foods | spam | Can eat spam
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-developers/cca05f9c-bacf-4ebb-8c19-a9ee2befdfb5%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to