﻿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
19663	Sqldiff breaks with PointField declaration	Jonathan Liuti	nobody	"I'm on ubuntu 12.04
Django 1.4.3
Postgresql 9.1.7

My model (simplified):
{{{#!python
class Estate(models.Model):
    coordinates = models.PointField()
    objects = models.GeoManager()
}}}

Syncdb has been run and everything seems to be ok but:

The sqldiff command will fail with the following error when a model contains a PointField:
{{{#!python
text = text + '\x1b[%sm' % RESET
TypeError: unsupported operand type(s) for +: 'NoneType' and 'str' 
}}}

It could be easily fixed by using proper string format syntax instead of '+':
{{{#!python
text = '%s\x1b[%sm' % (text,RESET)
}}}

"	Cleanup/optimization	closed	Core (Management commands)	1.4	Normal	fixed	sqldiff, gis		Ready for checkin	1	0	1	1	1	0
