-
Notifications
You must be signed in to change notification settings - Fork 54
write projects overview in react #866
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
Conversation
ca32db7 to
d10fa87
Compare
4e64e34 to
6debf66
Compare
| fields = ('title', 'catalog') | ||
|
|
||
|
|
||
| class ProjectSearchFilterBackend(SearchFilter): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for http://localhost:8000/api/v1/projects/projects/?search=olga%20child to search in title and the owners.
| return queryset | ||
|
|
||
|
|
||
| class ProjectDateFilterBackend(BaseFilterBackend): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for http://localhost:8000/api/v1/projects/projects/?after=2017-01-30&before=2020-01-30T0:00:00, with before and after or one of those.
| return datetime | ||
|
|
||
|
|
||
| class ProjectOrderingFilter(OrderingFilter): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This allows for ordering like this http://localhost:8000/api/v1/projects/projects/?ordering=owner. For owner, progres, and role the query needs to be annotated first.
5d2ee04 to
8920c00
Compare
b897e76 to
4bb73c7
Compare
* create new empty react page for projects
4bb73c7 to
e16eb0c
Compare
|
Looks good, can be merged. Thanks! |
Description
Related issue: #865
Motivation and Context
How has this been tested?
Screenshots (if appropriate)
Types of Changes
Checklist
BASE_URLsetting (!)