﻿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
7322	objects = GeoManager() in abstract class fails in subclasses	anonymous	nobody	"The following class definition produces a subclass without a working objects property. 

{{{
class FeatureBase(models.Model):
    feature_id = models.AutoField(primary_key=True)

    objects = django.contrib.gis.db.models.GeoManager()

    class Meta:
        abstract = True

class LoadFeature(FeatureBase):

    class Meta:
        db_table = 'load_features'
}}}


A simple test (notice no query is actually executed by LoadFeature.objects.all():

{{{
from django.db import connection
from nbd.loading.models import LoadFeature
LoadFeature.objects.all()
print connection.queries
}}}

This can be fixed by adding '''objects = django.contrib.gis.db.models.GeoManager()''' to the subclass.  This seems to be a bug, or a critical gap in the documentation.

"		closed	GIS	gis		duplicate			Unreviewed	0	0	0	0	0	0
