示例#1
0
 def custom_data(self):
     return CustomDataEditor(
         field_view=ProductFieldsView,
         domain=self.domain,
         required_only=True,
         post_dict=self.request.POST if self.request.method == "POST" else None,
     )
示例#2
0
 def custom_data(self):
     return CustomDataEditor(
         field_view=ProductFieldsView,
         domain=self.domain,
         existing_custom_data=self.product.product_data,
         post_dict=self.request.POST if self.request.method == "POST" else None,
     )
示例#3
0
 def custom_data(self):
     return CustomDataEditor(
         field_view=UserFieldsView,
         domain=self.domain,
         post_dict=self.request.POST
         if self.request.method == "POST" else None,
     )
示例#4
0
 def custom_data(self):
     from corehq.apps.users.views.mobile.custom_data_fields import UserFieldsView
     return CustomDataEditor(
         domain=self.domain,
         field_view=UserFieldsView,
         existing_custom_data=self.editable_user.user_data,
         post_dict=self.data,
     )
示例#5
0
 def custom_data(self):
     return CustomDataEditor(
         field_view=UserFieldsView,
         domain=self.domain,
         post_dict=self.request.POST if self.request.method == "POST" else None,
         required_only=True,
         angular_model="mobileWorker.customFields",
     )