﻿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
14513	Ordering Check in django/core/management/validation.py	Klaas van Schelven	nobody	"django/core/management/validation.py, both in the current trunk and in 1.2.3 
It says in the accompanying comment: 

{{{
# Skip ordering in the format field1__field2 (FIXME: checking 
# this format would be nice, but it's a little fiddly). 
}}}

However, the actual check is for only one ""_"". Which leads fieldnames which contain underscores to not be checked for 
ordering; 

The patch would be something like this: 
{{{
260c260 
<                 if '__' in field_name: 
--- 
>                 if '_' in field_name: 
}}}

I will go through some hoops to put up an actual patch here."		closed	Database layer (models, ORM)	1.2		fixed			Ready for checkin	1	0	0	0	0	0
