Improve Global Page Permission look in admin


I’m using the “Page global permission” to set some rights per-site for groups:

Can we improve this list in order to set the “change link” to another thing than the (empty) “user” (maybe user and group, or an id)?

Can we add the site where the permissions are applying into?

Can we see the site name instead of the site url in the list? (click for an example)

(The Site object in Django has a __str__ that returns only domain (and not name) :/)

(partially) Solved (here)! Thanks!


@corentin Sorry, I forgot to mention that the display of the site objects indeed is driven by it’s __str__ method which in turn is fixed in Django itself.

Have you considered patching it?

Site.__str__ = lambda self: