Re: Update permissions on custom permissions migration

2018-03-30 Thread Yo-Yo Ma
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

Update permissions on custom permissions migration

2018-03-30 Thread Yo-Yo Ma
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