﻿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
2216	Filtering by a field having same name as the model results in AttributeError	anonymous	Russell Keith-Magee	"For model
{{{
class Color(models.Model):
  color = models.TextField(maxlength=100)
  similar_colors = models.ManyToManyField(""self"")
}}}
filtering does not work by field ""color"": Color.objects.filter(color=""Light"") results in AttributeError: 'RelatedObject' object has no attribute 'column'

Without the similar_colors relation, the filtering works fine.

"	defect	closed	Database layer (models, ORM)	dev	normal	fixed		mir@…	Unreviewed	0	0	0	0	0	0
