Monday, July 29, 2019

forms - switch off the validation

Heiho,

I wrote a form in forms.py with some validation stuff, especially with
def clean_field(). All fine. But in some usecases I would prefare to
switch off at least some of the validation. For example it make no sense
to check for a double id when I want to delete a reccord. Is it possible
to swith them off with reuse the form and not with write nearly the same
form (don't repeat yourself..).

Thanks and Greetings,

bengoshi



--
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/41b2edc1-307a-a0e6-d389-a0051d38c787%40gmail.com.

No comments:

Post a Comment