Commits

Anonymous committed 6cc4468

0.91-bugfix: Fixed #1113, limit_choices_to on OneToOneField no longer breaks admin changelist

  • Participants
  • Parent commits 98e9905
  • Branches 0.91-bugfixes

Comments (0)

Files changed (1)

File django/contrib/admin/views/main.py

                     or_queries.append(meta.Q(**{'%s__icontains' % field_name: bit}))
                 complex_queries.append(reduce(operator.or_, or_queries))
             lookup_params['complex'] = reduce(operator.and_, complex_queries)
-        if opts.one_to_one_field:
-            lookup_params.update(opts.one_to_one_field.rel.limit_choices_to)
         self.lookup_params = lookup_params
 
 def change_list(request, app_label, module_name):