There is a completed form that is recorded through the save() method, like before writing to make small changes over the field, and then write to the database?

    2 answers 2

    Unfortunately there is no janga at hand, try this, but I do not guarantee =)

     form = MyForm(request.POST) if form.is_valid(): form.cleaned_data['myfield'] = 'some_value' form.save() 

      like this

       form = Form(request.POST) if form.is_valid(): model = form.save(commit = False) #не пишет в базу, возвращает модель model.sex = "female" #то самое небольшое изменение, меняем атрибут sex на "female" model.save() #записываем