In This milestone, you will be extending the functionality of the project we worked in the level.
The specification for this program is as follows,
You are asked to build the same project we worked on in the level and add some new features to it.
- You have to create another field in the model to store the priority of a task, no two tasks can have the same priority, the listing views must always be sorted by priority. Adding a task with an existing priority should increment the existing task's priority by 1 ( Cascading )
- Ability to mark tasks as completed
- Ability to view completed tasks
This milestone should be implemented with the Django ORM.
All views must be implemented using Django's Generic View classes.
Use the following repository as a starting point for this project: https://github.com/vigneshhari/GDC-Level-6-Milestone
to install the requirements for this project, run the following command in your terminal:
pip install -r requirements.txt
Once all the required features are implemented, push the code to a GitHub repository and submit the link to the repo.
To understand how querysets can be ordered take a look here , you can use the exists method to check if an object already exists in the database, the exists method is documented here