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

Add view for Substitutions #70

Open
pniedzwiedzinski opened this issue Feb 27, 2020 · 0 comments
Open

Add view for Substitutions #70

pniedzwiedzinski opened this issue Feb 27, 2020 · 0 comments
Labels
good first issue Good for newcomers migrate-2-django Issues related to migration from flask to django on backend

Comments

@pniedzwiedzinski
Copy link
Member

pniedzwiedzinski commented Feb 27, 2020

/api/teacher/all

In {app}/views.py create a view for returning all Substitutions. Only GET method should be allowed.

https://www.django-rest-framework.org/tutorial/quickstart/#views

Update

This view should return only substitutions for the current day.
https://stackoverflow.com/questions/4668619/how-do-i-filter-query-objects-by-date-range-in-django

@pniedzwiedzinski pniedzwiedzinski added migrate-2-django Issues related to migration from flask to django on backend good first issue Good for newcomers labels Feb 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers migrate-2-django Issues related to migration from flask to django on backend
Projects
None yet
Development

No branches or pull requests

1 participant