fpdcc / document-search

Search and management interface for spatial documents at the Forest Preserves of Cook County.
2 stars 0 forks source link

Begin to add validation for create/edit views #104

Closed xmedr closed 1 year ago

xmedr commented 1 year ago

Overview

This begins to add validation for create and edit views. This is done through model validators for all fields except geometry, where we're instead catching exceptions raised in both LicenseForm in forms.py and a custom widget in licenses.py

Connects #41

Notes

This does not include the items in #41 that needed updated rules, like township or job_number fields. Any other fields not mentioned in this comment should be good to go.

The fields that do have new validation should still accept existing values with little to no modification.

Testing Instructions