-
Notifications
You must be signed in to change notification settings - Fork 16
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 API for creating Assessments #862
Conversation
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.
Hoping that we can use the existing Assessment
ViewSet instead of creating another - let me know if this approach wont' work
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.
Looking good! A few revisions please
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.
looks good!
hawc/apps/assessment/api/viewsets.py
Outdated
@@ -254,7 +254,6 @@ def get_queryset(self): | |||
|
|||
|
|||
class Assessment(AssessmentEditViewSet): | |||
http_method_names = METHODS_NO_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.
I removed this; it was already in the parent class
"project_manager": ["2"], | ||
"team_members": ["1", "2"], | ||
"reviewers": ["1"], | ||
"creator": 1, |
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.
changed from strings to ints
Add an admin only API endpoint for creating, updating, and deleting assessments.