M
M
mr_drinkens892016-04-21 15:35:17
Django
mr_drinkens89, 2016-04-21 15:35:17

Why is the model not displayed in user_permissions?

Hello.
The essence is this: there are 2 models (product, category). In each of them there is an M2M field to each other through (through='ProductCategory').
So, when I log in as admin, the ProductCategory model is visible in the admin panel.
But, this model is not in the changes of rights for groups (not in the list of Available rights).
Who will tell you what the jamb is?
Thank you in advance

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Sergeev, 2016-04-21
@SergeevAI

And why do M2M fields in both models?)
Wouldn't it be enough to specify only in Category
products_list = models.ManyToManyField(Product)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question