magic-removal: Removed get_model_module() call in django.contrib.admin.filterspecs

git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@1657 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Adrian Holovaty 2005-12-15 00:12:51 +00:00
parent dac14ee6a4
commit 867fdd5084
1 changed files with 1 additions and 1 deletions

View File

@ -56,7 +56,7 @@ class RelatedFilterSpec(FilterSpec):
self.lookup_title = f.verbose_name
self.lookup_kwarg = '%s__%s__exact' % (f.name, f.rel.to._meta.pk.name)
self.lookup_val = request.GET.get(self.lookup_kwarg, None)
self.lookup_choices = f.rel.to._meta.get_model_module().get_list()
self.lookup_choices = f.rel.to._default_manager.get_list()
def has_output(self):
return len(self.lookup_choices) > 1