A
A
Astrohas2016-10-25 07:30:34
Django
Astrohas, 2016-10-25 07:30:34

Django how to make certain moderator only have access to their admin section?

There are certain sections on the site. There are moderators. I want a certain moderator to be able to access only the materials of the section associated with him. Can suggest what needs to be done.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Artyom Innokentiev, 2016-10-25
@Astrohas

Most likely, write your own custom admin panel - in a regular admin panel, such functionality is not provided. In terms of time and cost, this is a fairly large investment.
In my opinion, the order of work is as follows:
1. Creating a custom user
2. Authenticating and authorizing the user in a personal account (custom admin panel)
3. Write restrictions that will show the moderator only part of it.
4. Write UpdateView, CreateView, DeleteView, ListView for your templated models.

I
iegor, 2016-10-25
@iegor

Standard tools can give permissions for editing, adding and deleting for a specific table. If this is not enough, pay attention to the grappelli there out of the box, then what you describe.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question