Hi!

I'm working on a site where I'd like to allow changelist view with
sorting, filters, search and links to other custom views, but I
want to block users from using changeform. I'm thinking of
overriding the change_form template and adding a check there
for user.is_superuser (for whom I do want to allow change_form),
and displaying an error for all other users.

Only one model needs to be managed in this way. There are no
inline formsets for editing this model.

Is this a robust and secure approach? Thanks!

-- 
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+unsubscr...@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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to