OK, but what to do with the following in case of 2 models: =========== new_data = request.POST.copy() errors = manipulator.get_validation_errors(new_data) if not errors: manipulator.do_html2python(new_data)
========== The complete method is: =============== def new(request): manipulator = A.AddManipulator() if request.POST: new_data = request.POST.copy() errors = manipulator.get_validation_errors(new_data) if not errors: manipulator.do_html2python(new_data) a = manipulator.save(new_data) return HttpResponse("OK") else: errors = new_data = {} form = FormWrapper(manipulator, new_data, errors) return render_to_response('new.html', {'form': form}) =============== --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---