Add basic master view for Members table
This commit is contained in:
parent
c9d40abe96
commit
512e74c493
2 changed files with 194 additions and 0 deletions
|
@ -91,6 +91,9 @@ class MasterView(View):
|
|||
supports_prev_next = False
|
||||
supports_import_batch_from_file = False
|
||||
|
||||
# set to True to declare model as "contact"
|
||||
is_contact = False
|
||||
|
||||
supports_mobile = False
|
||||
mobile_creatable = False
|
||||
mobile_pageable = True
|
||||
|
@ -2516,6 +2519,8 @@ class MasterView(View):
|
|||
if data is None:
|
||||
data = form.validated
|
||||
obj = form.schema.objectify(data, context=form.model_instance)
|
||||
if self.is_contact:
|
||||
obj = self.objectify_contact(obj, data)
|
||||
return obj
|
||||
|
||||
def objectify_contact(self, contact, data):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue