On di, 2010-02-09 at 08:52 +0200, Derek wrote: > Can the filter list for the Region (as shown above in the RegionAdmin > class) be altered in some way such that it only shows those countries > that have regions? i.e. it will not show the complete list of all > Countrys, but only that subset which are already linked to Regions.
No, but you can tell the admin to only load them by overriding the queryset method in the RegionAdmin class. class RegionAdmin(admin.Modeladmin): ... def queryset(self, request): return super(ReqionAdmin, self).queryset(request).filter(...) -- Dennis K. The universe tends towards maximum irony. Don't push it. -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@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.