Full_clean is Django internal method which you should't touch.

.clean() method validation errors go to special non-field errors and by
quick look it should get correct css class.

If you could provide minimal project with suspected faulty behavior (for
example in github) it would be easier to see if there is something wrong
there.

ti 16. heinäk. 2019 klo 15.32 Jacob Greene <jacobgreene1...@gmail.com>
kirjoitti:

> Thank you for the reply! And good catch haha, I'm not actually. I editing
> these by hand so I wasn't posting some confusing telephony terminology. I'm
> displaying errors in my templates by marking them with that "form_error"
> css class. They are just red and bold, most errors are shown with the
> correct CSS class like my UniqueConstraints or any exceptions I throw in
> the modelForm clean() method, but any exceptions I throw in the
> Model.clean() or Model.full_clean() do not get the correct css class.
>
> --
> 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 post to this group, send email to django-users@googlegroups.com.
> Visit this group at https://groups.google.com/group/django-users.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/82018028-f0d8-46f7-a542-1bd7b072b8e8%40googlegroups.com
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAHn91oc4Z9BONy7gP0B6wZrG2NG-OTogXkCTeORm0d274sxL7g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to