django-guardian Questions
21
After migrating my django and userena packages like below
Django 1.8 to Django 1.9.7
django-userena 1.4.1 to django-userena==2.0.1
After running the project , I am getting below this error ...
Harriettharrietta asked 5/7, 2016 at 12:19
3
Solved
I am implementing an API where I have nested structures.
Lets say it is a zoo and I can call GET /api/cage/ to get a list of cages GET /api/cage/1/ to get cage ID 1, but then I can GET /api/cage/1/...
Willett asked 11/4, 2016 at 15:39
7
After I install Django-userena,there is an error
my django version :1.9.5
I just install django-userena step by step ,but when i migrate it ,an error happend and I don't how to solve it.
Tracebac...
Skivvy asked 22/8, 2016 at 3:42
1
I am relatively new to Django and I'm looking for some guidance in how to setup permissions in a certain way. Basically I have an app that consists of a couple of models similar to this:
class Proj...
Garlic asked 2/11, 2020 at 10:0
3
Why doesn't django rest framework check object permissions when creating an object? It makes no sense (to me, anyway) that a user should be able to create an object they couldn't see, update, or de...
Garonne asked 4/12, 2015 at 1:21
2
Solved
I have a model which looks like this:
class Change(models.Model):
RFC = models.CharField(max_length=10)
Ticket_Number = models.CharField(max_length=10)
Plan_Owner = models.ForeignKey(User)
I ...
Glenine asked 21/12, 2013 at 19:30
4
Solved
There is
from guardian.shortcuts import get_objects_for_user
But what about
from guardian.shortcuts import get_users_for_object
Thanks.
Charmain asked 28/2, 2013 at 14:35
1
I would like to manage my objects permission using django-guardian in a restful project (using django-rest-framework).
What I would like :
Allow the connected user to create an object only if he...
Spend asked 6/9, 2016 at 17:23
1
Solved
Trying to manage django-guardian object-level permissions with django-rest-framework the most cleanly and canon possible.
I want to assign a read permission (module.view_object) of an object to to...
Iniquitous asked 19/12, 2016 at 20:9
1
I am using the Django REST framework with the nested router extension. One of my routes looks like: companies/$company/locations/$location where $company and $location are slug variables.
I want t...
Publication asked 24/6, 2014 at 3:27
1
Solved
I'd like to be able to create per-object permissions using django-guardian.
But I'd like to add a layer of logic surrounding these permissions. For example if someone has edit_book permission on a...
Vesical asked 18/5, 2016 at 17:40
1
Solved
I was about to use django-guardian until I came across the following in the official documentation:
https://docs.djangoproject.com/en/stable/topics/auth/customizing/#handling-authorization-in-cust...
Abecedarium asked 15/10, 2015 at 1:46
1
Solved
I was able to setup django-guardian and my django-rest-framework project as the example in drf docs, but I'm failing to achieve the behavior that I want. Could someone please point out if I'm doing...
Allembracing asked 30/7, 2015 at 0:39
2
I got two models:
class ContactGroup(models.Model):
name = models.CharField(max_length=40)
class Meta:
permissions=(('view_group_contacts', 'View contacts from group'))
class Contact(models.M...
Abraham asked 19/5, 2014 at 9:40
1
Solved
I'm currently creating a structure where I have employees which belong to a company.
Within this company I need to be able to create several groups. Ranks if you will. You could assign less permiss...
Choroid asked 4/5, 2014 at 18:36
1
Solved
I have added row level permissions with django-guardian to my project.
From the set-up it seems everything worked fine:
Guardian specific tables have been created (guardian_groupobjectpermission...
Piton asked 18/8, 2013 at 12:2
1
Solved
I have two users, mh00h1 and mh00h2. I also have modelA that defines the following in my models.py:
class Meta:
permissions = (
('read','read'),
('write','write'),
)
From a shell, I went to ...
Appellant asked 8/8, 2013 at 4:3
1
Solved
I'm modeling a quite complex system in Django. I will post here only the relevant part of it and I will show simplified use cases diagrams to better express my ideas.
I basically have 2 type of us...
Roasting asked 15/7, 2013 at 2:33
2
Solved
I'm writing an API using django-tastypie. I have two custom permisions issues that I'm hoping django-guardian can fix.
I have two user groups Clinicians and Patients. Clinicians should be able to ...
Japanese asked 18/3, 2013 at 13:3
1
Solved
When I create a user in Django, he has no permissions:
In [7]: u = User.objects.create(username='aoeu')
In [12]: u.user_permissions.all()
Out[12]: []
I want some permissions to be set by default...
Sarmatia asked 7/9, 2012 at 6:35
2
Solved
I'm using django-guardian in order to manage per object permission.
For a given user I give permission all permission on one object:
joe = User.objects.get(username="joe")
mytask = Task.objects....
Adne asked 7/6, 2012 at 9:10
1
© 2022 - 2024 — McMap. All rights reserved.