Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validation of model fields before saving #15

Open
2 tasks
mortenwh opened this issue Jun 20, 2018 · 0 comments
Open
2 tasks

Validation of model fields before saving #15

mortenwh opened this issue Jun 20, 2018 · 0 comments

Comments

@mortenwh
Copy link
Contributor

mortenwh commented Jun 20, 2018

By default, Django does not validate model fields before saving. This can, however, be done using the full_clean() method.

  • Consider if we should validate model fields (in particular the Dataset model) when new instances are created (I have added a validator to the entry_id-field)

  • Implement model validation before save() (possibly using signals)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant