wip/73775-delete-custom-view-digest (#73775) #69

Merged
lguerin merged 2 commits from wip/73775-delete-custom-view-digest into main 2023-01-27 12:19:36 +01:00
2 changed files with 0 additions and 16 deletions
Showing only changes of commit aa6ce7c35d - Show all commits

View File

@ -333,14 +333,6 @@ class FormData(StorableObject):
self.submission_agent_id = str(self.submission_context.get('agent_id'))
changed = True
if 'digest' in self.__dict__: # 2021-06-24
# migration from a simple digest to digests
if not self.digests:
self.digests = {}
self.digests['default'] = self.__dict__['digest']
del self.__dict__['digest']
changed = True
if changed:
self.store()

View File

@ -225,14 +225,6 @@ class FormDef(StorableObject):
# don't run migration on lightweight objects
return
if 'digest_template' in self.__dict__:
# 2021-06-22 - migration from a simple template to templates
if not self.digest_templates:
self.digest_templates = {}
self.digest_templates['default'] = self.__dict__['digest_template']
del self.__dict__['digest_template']
changed = True
if self.max_field_id is None and self.fields:
self.max_field_id = max(lax_int(x.id) for x in self.fields)
changed = True