if self.lookup_opts.admin.list_filter and not self.opts.one_to_one_field:

576

if self.lookup_opts.admin.list_filter:

577

577

filter_fields = [self.lookup_opts.get_field(field_name) \

578

578

for field_name in self.lookup_opts.admin.list_filter]

579

579

for f in filter_fields:

The other peculiar thing is that when I try and construct an instance of the model from the interactive shell, ._meta.one_to_one_field is None and the condition should not affect it... I somebody can tell me where to look, if not I can try and digg it out myself.