コード例 #1
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     create_success = shop_assistant_admin.create_shop_assistant(
         self.session, form_dict, ShopAssistant, self.ARGS,
         self.SPECIAL_ARGS)
     return create_success
コード例 #2
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     success = shop_assistant_admin.update_shop_assistant(
         self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
     return success
コード例 #3
0
 def update_model(self, form, model):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     success = shop_assistant_admin.update_shop_assistant(self.session, form_dict, model, self.ARGS, self.SPECIAL_ARGS)
     return success
コード例 #4
0
 def create_model(self, form):
     form_dict = form_to_dict(form)
     shop_assistant_admin = ShopAssistantAdmin()
     create_success = shop_assistant_admin.create_shop_assistant(self.session, form_dict, ShopAssistant, self.ARGS, self.SPECIAL_ARGS)
     return create_success