-
Notifications
You must be signed in to change notification settings - Fork 4
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
Issue 59 v2:Filter Posts By Role #74
Open
lamalul
wants to merge
11
commits into
develop
Choose a base branch
from
Issue_59_V2
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for institution added; need improvement
…tViewSet To check if it works open the links: http://localhost:8000/posts/?posts_by=students http://localhost:8000/posts/?posts_by=teachers http://localhost:8000/posts/?posts_by=institutions
…it' into Issue#59
…trieveAPI view as view - after meging the branch from pull request#71 an separat view th only a get method PostByRol has been added and the url pattern for it has been added - The <str:role> is the argument of the url pattern and can be replaced by students, teachers, or intitutions repectivly.
to check it add ?posts_by=students (or teachers, or intitutions) after the posts/ url http://127.0.0.1:8000/posts/?posts_by=students
…etrieveAPI view as view - after merging the branch from pull request#71 a separate view with only a get method to class the PostByRole has been added and the url pattern for it has been added - The <str:role> is the argument of the url pattern and can be replaced by students, teachers, or institutions respectively.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The View PostByRole provides a retrieve View for the filtered posts by role.
Fixes #59