beta-nu-theta-chi / ox-dashboard

A chapter dashabord web app in Django for the Beta Nu Chapter of Theta Chi at Case Western Reserve University
MIT License
0 stars 0 forks source link

Produce error messages for things #62

Closed helper08 closed 3 years ago

helper08 commented 3 years ago

Currently, most forms that encounter an error don't produce an error message. Additionally, many forms that have @verify brothers in them have their error captured by the method and replaced by its error message.

helper08 commented 3 years ago

Currently, most forms can produce error messages alright, the only issue so far is with constraints that don't raise proper form errors. This can be fixed by overriding clean in the form class.

Documentation for this can be found here: https://docs.djangoproject.com/en/3.1/ref/forms/validation/#raising-validationerror