jazzband / django-oauth-toolkit

OAuth2 goodies for the Djangonauts!

Home Page:https://django-oauth-toolkit.readthedocs.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error messages in Application form are not associated with their fields.

dopry opened this issue · comments

Is your feature request related to a problem? Please describe.
Model/Application.clean is used to validate the Application model. When Errors are raised from Model.clean() There are non-specific and not associated with a field which can make it hard to understand what is really going on.

image

is because the origin is not allowed in a field below... This is very non-specific.

Describe the solution you'd like
We should look at using Model.full_clean and moving field specific validation to field validators.