OpenUpSA / wazimap

Wazimap is a Django application for exploring census data.
http://wazimap.readthedocs.org/en/latest/
Other
30 stars 31 forks source link

Table creation only happens after second save #105

Open xybrnet opened 7 years ago

xybrnet commented 7 years ago

When adding a release and DB Table to a Field/SimpleTable, the underlying table in the DB only gets created after the second save.

This happens irrespective of whether the DB Table is created before editing the Field/SimpleTable, or inline while editing the Field/SimpleTable.

This probably happens because the code that creates the underlying db table only gets called when saving the object, and not when creating it.