﻿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
6574	Make queries not select fields that has db_type None	oyvind	nobody	"Since sql_model_create in django/core/management/sql.py does not create fields that has db_type None, queries should not try to select a non-existing field.

Would be solvable in qs-rf by this small change in 

http://code.djangoproject.com/browser/django/branches/queryset-refactor/django/db/models/sql/query.py#L392

{{{

elif self.default_cols:
    table_alias = self.tables[0]
    result = ['%s.%s' % (qn(table_alias), qn(f.column))
        for f in self.model._meta.fields]
    aliases = result[:]

}}}

Should be:

{{{

elif self.default_cols:
    table_alias = self.tables[0]
    result = ['%s.%s' % (qn(table_alias), qn(f.column))
        for f in self.model._meta.fields if f.db_type()]
    aliases = result[:]

}}}"		closed	Uncategorized	queryset-refactor		wontfix	db_type query fields		Unreviewed	1	1	0	0	0	0
