python - How to permissions to a group in Django 1.8? -
i have 'document' model has many-to-many relationship user model.there separate web page in project displays document instance in text editor.
now suppose user created 1 document wants invite other users document.but wants give read-only permission , read-write permission others.
how implement permission functionality in django?how groups , other permissions frameworks work in django?
django group
, permission
applies on model itself. specific entry of document if want give access user in case need change schema of document
model. add users_who_can_read=manytomany(users)
, users_who_can_write=manytomany(users)
, , @ view.py when user trying load page check if in users_who_can_read or not.
i think should solve problem without problem.
Comments
Post a Comment