Re: How to detect clear checkbox chequed on ClearableFileInput

2014-03-01 Thread Héctor Urbina
Hello, I ended with this code: if insumoForm.is_valid() and not insumoForm.cleaned_data["DELETE"]: insumoRecurso = insumoForm.save(commit=False) if not insumoRecurso.archivo.name: continue insumoRecurso.recurso = recurso insumoRecurso.

How to detect clear checkbox chequed on ClearableFileInput

2014-02-27 Thread Héctor Urbina
Hello, I have a edit view to modify an object. The model includes an inline formset of insumoRecurso objects, for including files associated with the main object. These files appear with a checkbox for clearing files (ClearableFileInput widget). What should I test on my view to detect that the