formdef: make sure table name attribute is saved on migrations
This commit is contained in:
parent
e85781e4ad
commit
ea105138fc
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue