Dimitris Kougioumtzis Blog About technology

Django inline formset validation

Category Django

Posted on Oct. 3, 2017



django inline formset validation


1
2
3
4
5
6
7
class BaseInlineFormSet(forms.BaseInlineFormSet):
    def clean(self):
        if any(self.errors):
            return
        for form in self.forms:
                # your code 
                raise forms.ValidationError( 'error message ')

About

My name is Dimitris Kougioumtzis and i work as a Web developer at Rapidbounce Company

Elsewhere