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, )
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, )
def custom_data(self): return CustomDataEditor( field_view=UserFieldsView, domain=self.domain, post_dict=self.request.POST if self.request.method == "POST" else None, )
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, )
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", )