try this...
from django.forms import ValidationError
...
for form in self.forms:
...
raise ValidationError('whatever')
On Oct 11, 1:32 pm, Duane Hilton wrote:
> Changing forms to form brings a new error:
>
> *Exception Value: 'CandidateFeedForm' object has no attribute
> 'Validation
Changing forms to form brings a new error:
*Exception Value: 'CandidateFeedForm' object has no attribute
'ValidationError'*
Below is the view that is using the BaseCandFormSet code that I included in
the original message. Maybe something is wrong in it? Thanks in advance for
your suggestions. I'v
? 11 ?.?. 2553 23:44 Duane Hilton ?:
> Hi all,
>
> I'm trying to do some custom validation on a model formset, but I'm
> not having good luck. Thank you in advance for your suggestions ...
>
> In my views, I have:
>
> class BaseCandFormSet(BaseModelFormSet):
>def clean(self):
>
Hi all,
I'm trying to do some custom validation on a model formset, but I'm
not having good luck. Thank you in advance for your suggestions ...
In my views, I have:
class BaseCandFormSet(BaseModelFormSet):
def clean(self):
super(BaseCandFormSet, self).clean()
for form in self
4 matches
Mail list logo