GeoNode/geonode — pull request #358 by tomkralidis (2012-08-08 22:51:08+00:00)
Title: add south migration for updated models

FYI ```paver test``` was failing until I created the south migration:

```
(venv)tkralidi@catalog:~/geonode$ python manage.py schemamigration geonode.layers --auto
Creating __init__.py in '/home/tkralidi/geonode/geonode/layers/migrations'...
+ Added model layers.Link
? The field 'ContactRole.layer' does not have a default specified, yet is NOT NULL.
? Since you are making this field nullable, you MUST specify a default
? value to use for existing rows. Would you like to:
? 1. Quit now, and add a default to the field in models.py
? 2. Specify a one-off value to use for existing columns now
? 3. Disable the backwards migration by raising an exception.
? Please select a choice: 3
~ Changed field layer on layers.ContactRole
? The field 'Layer.geographic_bounding_box' does not have a default specified, yet is NOT NULL.
? Since you are removing this field, you MUST specify a default
? value to use for existing rows. Would you like to:
? 1. Quit now, and add a default to the field in models.py
? 2. Specify a one-off value to use for existing columns now
? 3. Disable the backwards migration by raising an exception.
? Please select a choice: 3
- Deleted field geographic_bounding_box on layers.Layer
+ Added field bbox_x0 on layers.Layer
+ Added field bbox_x1 on layers.Layer
+ Added field bbox_y0 on layers.Layer
+ Added field bbox_y1 on layers.Layer
+ Added field srid on layers.Layer
Created 0002_auto__add_link__chg_field_contactrole_layer__del_field_layer_geographi.py. You can now apply this migration with: ./manage.py migrate geonode.layers
(venv)tkralidi@catalog:~/geonode$
```