def post(self, *args, **kwargs): form_dict = simplejson.loads(self.request.POST['form']) form = Form.get_by_name(kwargs['name']) form.update_from_dict(form_dict) return http.HttpResponse(_(u'Form updated with success'))
def post(self, *args, **kwargs): form_dict = simplejson.loads(self.request.POST['form']) form = Form.get_by_name(kwargs['name']) form.update_from_dict(form_dict) return http.HttpResponse(_(u'Form updated with success'))
def get_context_data(self, *args, **kwargs): return { 'KIND_CHOICES': Field.KIND_CHOICES, 'form': Form.get_by_name(kwargs['name']), }
def get_context_data(self, *args, **kwargs): return { 'KIND_CHOICES': Field.KIND_CHOICES, 'form': Form.get_by_name(kwargs['name']), }