﻿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
12727	Error while doing syncdb with a GIS app	asgrewal	nobody	"The following error occurs while doing syncdb when an app contains GIS information, in my case a simple model with a PointField member. I am using Postgresql with postgis. The same code works fine for django 1.1

{{{
(django-dev-sandbox)ajeet@virtual-ubuntu:~/projects/enroute2$ python manage.py syncdb
Traceback (most recent call last):
  File ""manage.py"", line 11, in <module>
    execute_manager(settings)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/__init__.py"", line 438, in execute_manager
    utility.execute()
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/__init__.py"", line 379, in execute
    self.fetch_command(subcommand).run_from_argv(self.argv)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/base.py"", line 195, in run_from_argv
    self.execute(*args, **options.__dict__)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/base.py"", line 222, in execute
    output = self.handle(*args, **options)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/base.py"", line 351, in handle
    return self.handle_noargs(**options)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/core/management/commands/syncdb.py"", line 78, in handle_noargs
    sql, references = connection.creation.sql_create_model(model, self.style, seen_models)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/db/backends/creation.py"", line 50, in sql_create_model
    col_type = f.db_type(connection=self.connection)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/db/models/fields/subclassing.py"", line 28, in inner
    return func(*args, **kwargs)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/db/models/fields/subclassing.py"", line 28, in inner
    return func(*args, **kwargs)
  File ""/home/ajeet/django-dev-sandbox/lib/python2.6/site-packages/django/contrib/gis/db/models/fields.py"", line 200, in db_type
    return connection.ops.geo_db_type(self)
AttributeError: 'DatabaseOperations' object has no attribute 'geo_db_type'
}}}"		closed	GIS	1.2-alpha		invalid			Unreviewed	0	0	0	0	0	0
