- Setup a virtual environment.
- Fork the repository for Django REST Task 5 in JoinCODED’s Github and Clone it.
- Install the packages from the requirements file.
- Modify the
BookingsList
view so that it returns the list of upcoming bookings that belong to the logged in user. - Modify the
UpdateBooking
view so thatadmins
can modify bothpassengers
anddate
while normal users can only modifypassengers
.- Hint: You will need to override a method. Use this as a reference.
- Test both apis in postman.
- Push your code
forked from JoinCODED/REST_task_05
alhusamia/REST_task_05
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published
Languages
- Python 100.0%