feat: add optional validation to Model.save()
Open
Beginner friendly
Nobody has claimed this yet.
good first issue
validators
- Dominant language
- Rust
- Stars
- 13
- Forks
- 5
- Avg merge
- 1h 49m
- Merged PRs (30d)
- 3
Description
Currently, full_clean() must be called manually before save() to validate field constraints.
Goal: Add a validate: bool = False parameter to Model.save(). If True, it should trigger full_clean() before proceeding with the database write.
Implementation hint: Modify ryx/models.py's save method.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Open ryx/models.py and read the Model.save method first, including how it performs the database write and relates to full_clean(). Add the optional validation behavior described in the issue, then verify that save() remains unchanged by default and validates before writing when enabled.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- database
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 75/100