On Mon, 2009-03-23 at 09:44 +0100, Alessandro Ronchi wrote:
> I need to set a field as escluded in admin.py only for non-superuser
> staff people.
> is it possible?
> how can I do that?

You can override the ModelAdmin.get_form() method and return a different
form in those cases, I guess. It's passed the "request" object, so you
can work out the user from there.

Regards,
Malcolm



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to