﻿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
7181	Meta ordering on foreign key field which can be None	kkulewski@…	nobody	"I have model A which links to model B (using field b, but A.b can be None). In Meta of A I have ordering set to b.

AFAIK simple A.objects.all() select query contains INNER JOIN (in this case I use sqlite, but probably this problem is more popular) with relation B so if for some instance of A, A.b is None then it will be not included in the results of A.objects.all()."		closed	Database layer (models, ORM)	dev		fixed	qsrf-cleanup		Unreviewed	0	0	0	0	0	0
