How to permissions to a group in Django 1.8?

42 views
Skip to first unread message

akshat

unread,
Jun 13, 2015, 8:42:04 AM6/13/15
to django...@googlegroups.com

I have a 'Document' model which has many-to-many relationship with User model.There is a separate web page in my project which displays the Document instance in a text editor.

Now suppose user who created one document wants to invite other users to this document.But he wants to give read-only permission to some and read-write permission to others.

How do I implement this permission functionality in Django?How does groups and other permissions frameworks work in Django?

Gergely Polonkai

unread,
Jun 13, 2015, 9:28:21 AM6/13/15
to django...@googlegroups.com
Hello,

as the first step, you may want to look at [1]. Also, there is django-guardian[2], which may be a bit more appropriate for your situation.

Best,
Gergely


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To post to this group, send email to django...@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5bb18069-5121-4ccf-8093-f70d5acced4e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages