-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Gad 3 API changes #1454
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
Gad 3 API changes #1454
Conversation
Co-authored-by: A Anunaya <[email protected]> Co-authored-by: Aksh Bansal <[email protected]>
add api for android
Congratulations for making your first Pull Request at Fusion!! 🎉 Someone from our team will review it soon. |
@arminpatel Can you please complete the PR template?? Help us review the PRs faster. |
Done |
if caretaker.exists(): | ||
complaints = StudentComplain.get_complaints_by_user(user, 'caretaker') | ||
user_type = 'caretaker' | ||
elif supervisor.exists(): | ||
complaints = StudentComplain.get_complaints_by_user(user, 'supervisor') | ||
user_type = 'supervisor' | ||
else: | ||
complaints = StudentComplain.get_complaints_by_user(user, 'student') |
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.
Can you please Define the usertype instead of hardcoding them?
return Response(serializer.errors, status=status.HTTP_400_BAD_REQUEST) | ||
|
||
@api_view(['DELETE','PUT']) | ||
@api_view(['DELTE','PUT']) |
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.
Please fix this Delete
Great Job!!! |
Issue that this pull request solves
Closes: # (issue number)
Proposed changes
Brief description of what is fixed or changed
Types of changes
Put an
x
in the boxes that applyChecklist
Put an
x
in the boxes that applyScreenshots
No changes in interface