The problem -
@is_premium_user
def sample_view:
.......
......
I want certain views accesible to only the premium users of the website.
And how can I use this decorator across various applications in my project?
I want to get a list of all Django auth user with a specific permission group, something like this:
user_dict = {
'queryset': User.objects.filter(permisson='blogger')
}
I cannot find out how to do this. How are the permissions groups …
I am trying to limit access to pages using 2 user levels. Superuser and admin.
Super user is a regular Django user with 'is_superuser' assigned.
Admin user is also a regular user with only the 'is_staff' permission assigned.
The …