you'll need to implement custom validators to override the default 
`ValidationError` message for the fields.  some fields include this 
functionality by default, ie DecimalField (
https://github.com/django/django/blob/main/django/forms/fields.py#L419-L428), 
others don't

On Monday, January 2, 2023 at 4:00:23 PM UTC-5 Noel Duffy wrote:

> On 3/01/23 02:21, Alex Sonar wrote:
> > Hi Noel!
> > Have you looked at the problem in context CSRF Protection?
> > Please check it out
> > 
> > - How to use Django’s CSRF protection
> > https://docs.djangoproject.com/en/4.1/howto/csrf/
> > 
> > It might be as a solution...
>
> I don't see how this helps. I want to access a field value even if the 
> call to form.is_valid fails. CSRF protection, which is on by default, 
> doesn't affect this in any way that I can see.
>
>
>
>

-- 
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/2e199d72-7696-4ce8-86f3-7e73d77024b1n%40googlegroups.com.

Reply via email to