Re: Good way to modify admin list_filter based on is_superuser?

2009-11-20 Thread Daniel Roseman
On Nov 20, 3:26 pm, JHeasly wrote: > In using Simon W.'s "simple example of row-level permissions in the > admin"  (http://www.djangosnippets.org/snippets/1054/), I'm trying to > extend the concept by modifying the 'list_filter' tuple of the > subclassed ModelAdmin based

Good way to modify admin list_filter based on is_superuser?

2009-11-20 Thread JHeasly
In using Simon W.'s "simple example of row-level permissions in the admin" (http://www.djangosnippets.org/snippets/1054/), I'm trying to extend the concept by modifying the 'list_filter' tuple of the subclassed ModelAdmin based upon the request.user.is_superuser property buy am struggling with