﻿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
34344	PostGIS Database Backend Overrides features_class, ops_class and introspection_class	David Buhler	David Buhler	"While working on adding PostGIS support to the django-multitenant library I had some issues with the features_class that was overridden in the DatabaseWrapper subclass. After some troubleshooting I was able to determine this is because the PostGIS backend explicitly sets the `features`, `ops`, and `introspection` properties to the file local classes:

https://github.com/django/django/blob/stable/4.2.x/django/contrib/gis/db/backends/postgis/base.py#L91

I was able to work around this behaviour by overriding the constructor and setting the features property explicitly:

https://github.com/citusdata/django-multitenant/pull/150/files#diff-0d077af5d4e86f31f478785458ea6a03768a15aea077f49b9a79ffca8b0fe4beR37

This isn't very intuitive as other database backends will respect setting the `_class` properties to instantiate classes."	Cleanup/optimization	closed	GIS	dev	Normal	fixed	geodjango postgis database backend		Ready for checkin	1	0	0	0	0	0
