Questions tagged [django-permissions]

django-permissions is a pluggable django app that provides per-object permissions for Django based on roles

django-permissions is a pluggable django app that provides per-object permissions for Django based on roles.

431 questions
0
votes
2 answers

Django Models Create a Coustom Query

I am trying to get all the post in a thread before or on a certain time. So how do I get Django to allow me the privilege to enter my own queries? This is the closest I could come using Django's model functions. # need to get all the post from…
0
votes
1 answer

Django permission advice

I am at a crossroad actually in my Django 1.5 project and need some community advice before turning right or left. Here are my models Article Model class Article(models.Model): title = models.CharField(max_length=1000, verbose_name="Titre") …
Matthieu
  • 1,084
  • 12
  • 23
0
votes
2 answers

Django prefetch_related and many to many to many relation

I have these models: class Permission(models.Model): name = models.CharField(u'Name', max_length=100) codename = models.CharField(u'Code name', max_length=100) class Role(models.Model): name = models.CharField(u'Name', max_length=80) …
Julian Popov
  • 17,401
  • 12
  • 55
  • 81
0
votes
1 answer

How to set privileges for a user in Django (without using admin)?

I am new to Django and I wanted to set privileges without using admin from my templates.
Aventador
  • 205
  • 2
  • 11
0
votes
1 answer

enforce security (permissions) on django comments

I'm using the standard django.contrib.comments app. However, for my app i need to enforce more granular permissions on posting and viewing comments. For instance, i only want certain people to view comments posted against a given object, and…
IMFletcher
  • 656
  • 9
  • 19
-1
votes
1 answer

Django - How can I add a user to an auth_group?

I have and django application that I am trying to apply user group permissions. Here is how my members model is setup. Class Member(AbstractUser) Class Meta: permissions = ((Perm1_codename, Perm1_desc),...) pass address =…
quasar
  • 3
  • 1
-1
votes
1 answer

Permissions to edit only one field in a Model. Django

I am developing an app which will have different types of users, and the objective is that in a specific Model, it is completed in a community way. Example: 3 types of users: UserTotal, UserParcial, UserBase. Class object name ModelFamily, has 10…
-1
votes
1 answer

How to create Workspaces and manage them for all the users in Django?

I have a complete Login and Registration system in my Django app, that lets me register users, log in users, logout users, change passwords, reset passwords, invite users. I have all the basic functionality. I want now to have Workspaces for users,…
-1
votes
1 answer

How can I use Django for a SaaS product with an admin portal?

I would try to explain our desired product idea as clear as possible but feel free to ask further questions. So, basically what we want to build is a SaaS product that will be used by multiple clients. For now, we're not interested in custom domains…
-1
votes
1 answer

How to create Django-Rest-framework permission interface like django-admin provide | is there any library available for that?

How to create a User interface like django-admin provide for granting/revoking permissions for Django-Rest APIs. and automatically handle it. I mean I need a generic functionality, admin user can grant/revoke permissions or APIs to a particular…
-1
votes
2 answers

How to restrict my students to don't access teacher area in django?

I'm creating a website where there is two types of users, Students and Teachers. I had created one register and login page for authentication. Now by default all the users who sign up will be the students and can access the videos and also…
1 2 3
28
29