﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
28047	Regression in query set against 1.10	Thierry Bastian	nobody	"I have this (simplified) 

from django.db import models
class Foo(models.Model):
    class Meta:
        app_label = 'inventory'
    pass

class Bar(models.Model):
    class Meta:
        app_label = 'inventory'
    foo = models.OneToOneField(Foo, primary_key=True, on_delete=models.CASCADE)


Of course you need an app named inventory. But just use this and try to create a query set like this:

Bar.objects.filter(foo__in=Foo.objects.all())

Obviously I had different criteria.

Creating that query set says: 
""django.core.exceptions.FieldError: Cannot resolve keyword 'foo' into field. Choices are: bar, id""

That was working just fine in Django 1.10"	Bug	new	Database layer (models, ORM)	1.11	Normal		regression		Unreviewed	0	0	0	0	0	0
