﻿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
22790	spatialite/Oracle GIS app_label deprecation warnings	Tim Graham	Aymeric Augustin	"{{{
/home/tim/code/django/django/contrib/gis/db/backends/spatialite/models.py:10:
RemovedInDjango19Warning: Model class django.contrib.gis.db.backends.spatialite.models.GeometryColumns
doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was
imported before its application was loaded. This will no longer be supported in Django 1.9.
  class GeometryColumns(models.Model):
  
/home/tim/code/django/django/contrib/gis/db/backends/spatialite/models.py:47:
RemovedInDjango19Warning: Model class django.contrib.gis.db.backends.spatialite.models.SpatialRefSys
doesn't declare an explicit app_label and either isn't in an application in INSTALLED_APPS or else was
imported before its application was loaded. This will no longer be supported in Django 1.9.
}}}

Tried adding `app_label = 'gis'` to the models, but ran into another problem:
{{{
======================================================================
ERROR: django.contrib.gis.tests.tests (unittest.loader.ModuleImportFailure)
----------------------------------------------------------------------
ImportError: Failed to import test module: django.contrib.gis.tests.tests
Traceback (most recent call last):
  File ""/usr/lib/python2.7/unittest/loader.py"", line 252, in _find_tests
    module = self._get_module_from_name(name)
  File ""/usr/lib/python2.7/unittest/loader.py"", line 230, in _get_module_from_name
    __import__(name)
  File ""/home/tim/code/django/django/contrib/gis/tests/tests.py"", line 9, in <module>
    from django.contrib.gis.db.backends.postgis.operations import PostGISOperations
  File ""/home/tim/code/django/django/contrib/gis/db/backends/postgis/operations.py"", line 16, in <module>
    from .models import GeometryColumns, SpatialRefSys
  File ""/home/tim/code/django/django/contrib/gis/db/backends/postgis/models.py"", line 10, in <module>
    class GeometryColumns(models.Model):
  File ""/home/tim/code/django/django/db/models/base.py"", line 287, in __new__
    new_class._meta.apps.register_model(new_class._meta.app_label, new_class)
  File ""/home/tim/code/django/django/apps/registry.py"", line 201, in register_model
    (model_name, app_label, app_models[model_name], model))
RuntimeError: Conflicting 'geometrycolumns' models in application 'gis': <class 'django.contrib.gis.db.backends.spatialite.models.GeometryColumns'> and <class 'django.contrib.gis.db.backends.postgis.models.GeometryColumns'>.
}}}"	Bug	closed	GIS	1.7-beta-2	Release blocker	fixed	app-loading	Aymeric Augustin	Accepted	1	0	0	0	0	0
