Never mind, it was easy.

Basically, overriding the "get_form":

def get_form(self, request, obj=None, **kwargs):
        if request.user.is_superuser:
            self.exclude = None

On Feb 3, 5:42 pm, "Rodrigo C." <rodrigo...@gmail.com> wrote:
> After following this article:http://www.b-list.org/weblog/2008/dec/24/admin/
> I have managed to implement admin users editing and seeing only their
> own records (yay).
> However, I would like to be able to limit the fields users see based
> on if they're superusers or not (i.e.: superusers see all fields, non-
> superusers see some fields).
> Is this possible without major surgery?
>
> Thanks,
>
> Rodrigo
--~--~---------~--~----~------------~-------~--~----~
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