Closed jamienoss closed 7 months ago
Attention: Patch coverage is 81.66667%
with 11 lines
in your changes are missing coverage. Please review.
Project coverage is 90.73%. Comparing base (
e1bf207
) to head (b6a4501
).
Files | Patch % | Lines |
---|---|---|
biospecdb/apps/uploader/base_models.py | 78.04% | 9 Missing :warning: |
biospecdb/apps/uploader/models.py | 80.00% | 2 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Resolves #332
My understanding from the Django docs is that
ModelForm
should pull the validators from the model fields such that when the form is validated, the field validators are called. This does not seem to happen.250 approached this before, however, it still relied on the field validators running.
Changes:
uploader.admin
(doesn't bother inline admins and theuser
andcatalog
apps 🤷 ).django.db.models.Model.full_clean
and addfail_early
option such that field validations are raised beforeModel.clean
is called.