* cc: thepapermen (added)
* ui_ux: => 0
* easy: => 0
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:8>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Comment (by Thibaud Colas):
In case anyone follows updates here, link to a recent discussion about
this on the django-developers mailing list: https://groups.google.com/g
/django-developers/c/Jv1GqGlp3ao.
I have shared a proof of concept fixing this without changing the fact
that permission names are stored in the database, at least for default
permission names. And for all permissions, as far as I can see there’s no
reason to use the (untranslated) app name. Verbose app names are
translate-able and can just be switched to.
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:9>
Comment (by Claude Paroz):
+1 from me to reopen if we have a way foward.
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:10>
Comment (by Thibaud Colas):
🙌 as suggested by @nessita on Discord, I’ve taken this to the Django
Forum in Django Internals: https://forum.djangoproject.com/t/permissions-
dont-get-translated-in-admin-interface/21324.
Let’s try to keep the discussion going over there!
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:11>
* status: closed => new
* has_patch: 1 => 0
* resolution: wontfix =>
* stage: Unreviewed => Accepted
Comment:
Re-opening following discussion both here and on the forum thread.
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:12>
Comment (by Thibaud Colas):
I’m not 100% sure but I believe fixing this with the approach I suggested
in [https://github.com/thibaudcolas/django/pull/1 my PoC] would also fix
#26756. And possibly help with #27489.
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:13>
Comment (by Natalia Bidart):
Replying to [comment:13 Thibaud Colas]:
> I’m not 100% sure but I believe fixing this with the approach I
suggested in [https://github.com/thibaudcolas/django/pull/1 my PoC] would
also fix #26756. And possibly help with #27489.
Would you have time to confirm whether that's the case? And, relatedly, I
don't have clarity on whether the linked PoC is in a "reviewable" state or
not. I wanna help, what would be the next useful step? Thank you!
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:14>
Comment (by Sebastian Rode):
I looked into #26756 as part of a Django sprint, it seems like the
underlying problem is the same. In both cases the verbose model_name is
written as permission.name to the database when creating it. This is not
updated when the verbose_name changes. The existing PR from a previous
author uses the migration plan to update the permission name explicitly
when any changes of verbose name happen. In my opinion the approach here
of not hard-coding the verbose model name to the database, is good, but
might have the potential of introducing breaking changes. I cannot really
judge this. Would be good to get some input.
--
Ticket URL: <https://code.djangoproject.com/ticket/1688#comment:15>