﻿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
18907	Documentation regarding population of backrefs is incorrect	Simon Percivall	Tim Graham <timograham@…>	"It is stated at https://docs.djangoproject.com/en/1.4/topics/db/queries/#how-are-the-backward-relationships-possible in the third paragraph that ""the first time any model is loaded"" Django iterates `INSTALLED_APPS` and populates backrefs. Either this is plain wrong, or the text needs clarification.

1. I create a minimal two-app project where app2.Model2 has a reference to app1.Model1 and both `app1` and `app2` are in `INSTALLED_APPS`
2. I create a Model1: `Model1.objects.create()`
3. I write and run a script:
{{{#!python
from app1.models import Model1

m = Model1.objects.get().model2s.all()
}}}
4. and get
{{{#!python
Traceback (most recent call last):
  File ""f.py"", line 8, in <module>
    Model1.objects.get().model2s.all()
AttributeError: 'Model1' object has no attribute 'model2s'
}}}

If I add `import app2.models`, it'll work."	Bug	closed	Documentation	1.4	Normal	fixed		ke1g percivall@…	Accepted	0	0	0	0	0	0
