formdef: make sure table name attribute is saved on migrations

This commit is contained in:
Frédéric Péters 2013-07-30 08:55:57 +02:00
parent e85781e4ad
commit ea105138fc
1 changed files with 1 additions and 0 deletions

View File

@ -145,6 +145,7 @@ class FormDef(StorableObject):
if not self.table_name and get_publisher().has_site_option('postgresql'):
import sql
self.table_name = sql.get_formdef_table_name(self)
changed = True
if changed:
self.store()