admin fieldsets for different users
hi
I couldn't reply to this post (http://www.mail-archive.com/django-
users@googlegroups.com/msg108414.html) so I have to write a new one,
sorry.
is there a solution to this now ?
what Profuel suggested:
if not request.user.is_superuser:
self.exclude.append('A')
else:
self.exclude.pop('A')
does not work for me because I have some fieldsets in my Admin class:
fieldsets = ('foo', {'fields': ['A',]})
then I get the Caught KeyError while rendering: Key 'A' not found in
Form.
maybe someone could point me to how to reload Admin classes every
time ?
cheers,
_j
--
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+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home