Re: Form.has_changed() == False and Form.changed_data empty

2021-04-11 Thread Lars Liedtke
Hello Gabriel, thank you for your reply, I use the widgets own rendering in my template. {{ form.customer }} where "form" is the Form class and customer the checkbox-widget passed via the context. The Problem is not a rendering Problem (I think) because the checkbox works as intended. Only the

Re: Form.has_changed() == False and Form.changed_data empty

2021-04-11 Thread Gabriel Araya Garcia
I have checkboxes in my css grid and there is name, type=chekbox", etc. In may view django I have captured the value of the check template with valor_xx = request.POST.get(str(xx)) # valor del check directamente desde template in POST method. But, all of this in my view based in function. L

Form.has_changed() == False and Form.changed_data empty

2021-04-11 Thread Lars Liedtke
Hello, I have got two checkboxes in a Form on Django 3.1, with which everything works fine, but unchecking them. I use a class derived from UpdateView and in its post() method I check for if my form has changed. This works fine for an initial empty form and checking form.has_changed(); after then