Django 1.1 resolution issue in template

I have an application that allows the user to filter certain things for users with different permissions.

Django 1.1 for some reason does not seem to recognize them.

I have a group that is called corporateand permissionsprovided as needed.

now in my template i get the following.

{% if perms.corporate%}
    ... show next {% else%}
    ... show something else
{% endif%}

why doesn't this give the information i want?

+3
source share
1 answer

perms.corporate User.has_module_perms('corporate'). ( ) corporate. , - , , , .

+4

Source: https://habr.com/ru/post/1755481/


All Articles