Thanks Felipe, this is exactly what I was looking for.
My goal is to create a new default permission for all my models without having to declare it explicitly at all.
It would be something like:
permissions = (
('view_model_class_name', _ ('View model_class_name')),
)
I wonder why the developers chose to put the nucleus only the permissions add, change and delete and do not include default permission for display only.
Fábio C. Barrionuevo da Luz
Acadêmico de Sistemas de Informação na Faculdade Católica do Tocantins - FACTO
Palmas - Tocantins - Brasil - América do Sul
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+unsubscribe@googlegroups.com.
To post to this group, send email to django-users@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/e1d3baf8-f17b-4c8f-bbfc-df4e7cfaa51e%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
No comments:
Post a Comment