﻿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
12334	GeoQuerySet creates invalid SQL on calls to `__nonzero__` or `__len__`	wardi	nobody	"{{{
from django.contrib.gis.db import models
from django.contrib.gis.geos import Point

class Location(models.Model):
    point = models.PointField()

bool(Location.objects.filter(point=Point(1,0)))
}}}

causes an exception in the regular django db layer (not the gis one), it looks like the implementation of `__nonzero__` and `__len__` in `QuerySet` are not properly overridden by `GeoQuerySet`.

"		closed	GIS	1.1		invalid			Unreviewed	0	0	0	0	0	0
