﻿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
25400	Attributes are always set on `connection.features` (gis)	Daniel Hahler	nobody	"With commit d9ff5ef36d3f714736d633435d45f03eac9c17b5 the behaviour of `hasattr`
on `connection.features` seems to have changed, e.g. the following will be True
now always, and was previously so only for Django < 1.5.

{{{
hasattr(connection.features, 'confirm')
}}}

pytest-django is using the following code:

{{{
# confirm() is not needed/available in Django >= 1.5
# See https://code.djangoproject.com/ticket/17760
if hasattr(self.connection.features, 'confirm'):
    self.connection.features.confirm()
}}}


The problem seems to be that `__getattr__` should raise an AttributeError in this case.
(Source: https://github.com/django/django/commit/d9ff5ef36d3f714736d633435d45f03eac9c17b5#diff-fbce17c4cb97f431da78cbdf3ac4ff16R90)
"	Bug	closed	Database layer (models, ORM)	dev	Release blocker	fixed	regression		Accepted	1	0	1	0	0	0
