The docs cover this use case:

https://docs.djangoproject.com/en/3.2/ref/forms/validation/#cleaning-and-validating-fields-that-depend-on-each-other

On Saturday, 24 April 2021 at 19:57:50 UTC+2 robert...@gmail.com wrote:

>
>
> 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/9f3c6f53-7afc-428c-80be-86d06a7f02c1n%40googlegroups.com.

Reply via email to