Monday, April 26, 2021

Re: Validate group of fields


Perfect, thanks a lot Derek!

El lunes, 26 de abril de 2021 a las 0:14:32 UTC-6, Derek escribió:
The docs cover this use case:

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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/5997a97d-80fb-458a-93c1-054c2c12aa80n%40googlegroups.com.

No comments:

Post a Comment