﻿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
19401	'swapped' checking does not account for case insensitivity	chris@…	nobody	"According to the code at django/db/models/options.py:230 the test for ""has this class been swapped?"" is essentially: ""if there's a swapped meta option, and the option is not None, and the option isn't simply the name of the current model, in ""appname.model"" format""

However, the test doesn't take into account that the model part of appname.model is case insensitive.

While we could simply normalise app_name and that coming back from the setting, I think a better test would be:

""if there's a swapped meta option, and the option is not none, and the ""get_model()"" using that option is not the same as the current class instance."" Ie, rather than assume model names are case insensitive, just use the get_model and ensure it doesn't return us."	Bug	closed	Database layer (models, ORM)	1.5-beta-1	Release blocker	fixed			Accepted	1	0	0	0	0	0
