﻿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
7589	gis: Modifications to Django management commands to support creation of spatial tables.	jbronn	nobody	"This patch contains the following changes that enable the Django management commands to construct spatial SQL for PostGIS:

1. The addition of the `_post_create_sql` hook.  If a custom field has this function it will be called and its output will precede any other SQL generated by `sql.custom_sql_for_model`.  This works well, but I'm of course open to changes in the function name and/or the possibility of a post_table_create signal or something (doing after `post_syncdb` will not work).

2. Although not required for GeoDjango having `custom_sql_for_model` take the style object as a parameter allows for colorizing the generated spatial SQL -- the `sqlcustom` and `syncdb` commands are modified to pass in their style object to `custom_sql_for_model`."		closed	Core (Other)	dev		fixed	gis syncdb sql		Unreviewed	1	0	0	0	0	0
