K
K
kAIST2019-02-12 20:43:33
Django
kAIST, 2019-02-12 20:43:33

How to make a custom division of rights in the django admin?

django 1.11
There is a "city" model and an associated "person". That is, a person has a "city" field through ForeignKey.
In the admin panel, you need to create a user who has access to people, for example from Omsk? I would like to implement this at the level of the standard admin panel, and not rewriting everything from scratch.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question