So I am implementing a couple custom admin interfaces for a project i
am working on. I wanted to limit the choices for a few of my models,
so i overrode the ModelAdmin.queryset method and that worked well. But
the one thing i noticed was that any other models (one being Study)
that have relationships with the model, Investigator, do not utilize
the limited queryset. So in the change_list of Investigator, only the
limited set is shown, but when I add something new for a different
model (say Study) that has a foreign key with Investigator, the
dropdown shows the full queryset of Investigator.

I know that I can create a custom ModelForm for the add/change views
for Study, but i was curious why this limited queryset does not
propagate throughout the entire admin since it has been set at the
admin-wide level (ModelAdmin)?
--~--~---------~--~----~------------~-------~--~----~
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