MLH-Fellowship / MLH-Fellowship/orientation-project-python-24.SPR.A
Create a`SerializerMixin` to convert models into json representation.
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 1
- Forks
- 3
- PR merge metrics
- No merged PRs in 30d
Description
Tasks
- Create a class
SerializerMixinin themodels.py - implement
to_json()method - use
jsonifyto convert the current instance.
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 models.py and locate the model definitions. Add the SerializerMixin class with a to_json() method that uses jsonify on the current instance. Done means the mixin exists in models.py and models can produce a JSON representation through to_json().
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100