adding object level permissions on the core permissions

41 views
Skip to first unread message

Erick Lestrange mr-programs.com

unread,
Mar 29, 2018, 10:37:54 AM3/29/18
to Django developers (Contributions to Django itself)
I want to add object level permissions to the Django'd core auth app Permission model.

currently permission instances follow this string format '<app>.<behavior>_<model>' ideally i want this object level permissions to follow a similar string format with as few variations from the originals as possible

but the main thing this permissions should do is being automatically loaded by the template system just as current ones in order to avoid db queries. this is a must!

Jani Tiainen

unread,
Mar 29, 2018, 11:16:25 AM3/29/18
to django-d...@googlegroups.com
Hi.

To achieve object level permissions you need to write custom authentication backend. 

Django does provide support for object level permissions but there isn't default implementation because object level permissions have different meaning for different people.

See auth docs for more information.

--
You received this message because you are subscribed to the Google Groups "Django developers  (Contributions to Django itself)" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-develop...@googlegroups.com.
To post to this group, send email to django-d...@googlegroups.com.
Visit this group at https://groups.google.com/group/django-developers.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/9651514e-60dc-4bd5-a33e-64b6d36481b2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages