On top of needing to limit list_filter in the admin, I also needed to
limit the user choices in my FK to auth.user. This bit of code does
just that:
<https://gist.github.com/1719713>
Just thought I would share the code to help others.
I am wondering if I can apply the same logic, as a method, to list_filter?
list_filter = SomeMethod()
(probably not, but that would be nice)
Anywho... Anyone know when Django 1.4 is scheduled to be released?
--
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.
No comments:
Post a Comment