﻿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
1343	Validation of models on install should only traverse installed models	Russell Keith-Magee	Russell Keith-Magee	"In [http://groups.google.com/group/django-developers/browse_thread/thread/c1de1a53ac393315/2313331494290f9c this thread], Kuba Konczyk <jakamkon@gmail.com> noted the following problem:

{{{
I have two applications in my project app1 and app2 with defined
models and app2 model  have error(s).I want to install app1:

$ django-admin.py install app1
Error: app1 couldn't be installed, because there were errors in your model:
app2.choices: At least one field in Choice should have core=True,
because it's being edited inline by polls.Poll.

Both models are separated,so why when I want to install app1 I get
error about app2?I just want to install app1, I don't care about app2
model now.

'django_admin.py/manage.py install app1 app2  ... appN ' command is
using 'get_validation_errors' function to validate models.For every
application from command line  'get_validation_errors' validate _all_
models from installed modules.
}}}

django-admin should only validate the model being installed, as well as checking for dependencies that haven't been installed. At present, the traversal algorithm validates all models that are available in the project directory."	defect	closed	Core (Management commands)		minor	fixed	django_admin validation	jakamkon@…	Ready for checkin	0	0	0	0	0	0
