﻿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
13715	Creating GeoDjango model in shell does not work	drdee	nobody	"When you start the shell (python manage.py shell) and paste the following code (pasted from http://docs.djangoproject.com/en/dev/ref/contrib/gis/model-api/):

from django.contrib.gis.db import models

class Zipcode(models.Model):
    code = models.CharField(max_length=5)
    poly = models.PolygonField()
    objects = models.GeoManager()

then you receive the following error 'list index out of range'

line 49:kwargs = {""app_label"": model_module.__name__.split('.')[-2]}


the model_module refers to: <module '__main__' from '/Library/Python/2.5/site-packages/IPython/FakeModule.pyc'>

This happens with Postgresql 8.4, postgis 1.5.1, OSX 10.5, python 2.5.2
"		new	Contrib apps	1.2			geodjango, postgresql 8.4, postgis 1.5		Unreviewed	0	0	0	0	0	0
