Saturday, April 24, 2021

Validate group of fields



Hello guys!

I've 3 fields, but I need validate it as a group, Ej:

adults = forms.IntegerField(initial=0)
kids = forms.IntegerField(initial=0)
students = forms.IntegerField(initial=0)

The Idea is to validate it as a group, not sure if that makes sense or if I need custom validation for that fields

Thanks,

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/0d8d811f-7452-45fc-8e36-42c70ef420b7n%40googlegroups.com.

No comments:

Post a Comment