#26756: Changing of model's verbose_name does not change the names of the model's permissions -------------------------------------+------------------------------------- Reporter: dburakov | Owner: black3r Type: Bug | Status: assigned Component: Migrations | Version: master Severity: Normal | Resolution: Keywords: permissions | Triage Stage: Accepted verbose_name migrate | Has patch: 1 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 1 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by black3r): I've tried the suggested injecting a migration operation approach, but somehow ended up with an unexpected exception saying Permission model cannot resolve 'content_type' into a field. then i've tried optimizing my previous approach by only checking permissions for models that had verbose_name altered during the migration. that should be almost as effective as the suggested approach, and passed the test I've written, so I created a new PR ( https://github.com/django/django/pull/6837 ) for that approach. -- Ticket URL: <https://code.djangoproject.com/ticket/26756#comment:6> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/066.ebd1f2ed370fc617664b11e7620d4dbf%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.