Views
hypha.apply.api.v1.views
¶
SubmissionViewSet
¶
Bases: ReadOnlyModelViewSet
, GenericViewSet
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsApplyStaffUser)
pagination_class
class-attribute
instance-attribute
¶
pagination_class = StandardResultsSetPagination
get_serializer_class
¶
get_queryset
¶
Source code in hypha/apply/api/v1/views.py
set_summary
¶
Source code in hypha/apply/api/v1/views.py
meta_terms
¶
Source code in hypha/apply/api/v1/views.py
SubmissionFilters
¶
Bases: APIView
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsApplyStaffUser)
filter_unique_options
¶
format
¶
get
¶
Source code in hypha/apply/api/v1/views.py
SubmissionActionViewSet
¶
Bases: SubmissionNestedMixin
, GenericViewSet
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsApplyStaffUser)
get_submission_object
¶
get_object
¶
list
¶
List all the actions that can be taken on a submission.
E.g. All the states this submission can be transistion to.
Source code in hypha/apply/api/v1/views.py
create
¶
Transistion a submission from one state to other.
E.g. To transition a submission from Screening
to Internal Review
following post data can be used:
Source code in hypha/apply/api/v1/views.py
RoundViewSet
¶
Bases: RetrieveModelMixin
, ListModelMixin
, GenericViewSet
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsApplyStaffUser)
permission_classes_by_action
class-attribute
instance-attribute
¶
permission_classes_by_action = {'open': [HasAPIKey | IsAuthenticated, HasAPIKey | IsApplyStaffUser]}
pagination_class
class-attribute
instance-attribute
¶
pagination_class = StandardResultsSetPagination
get_serializer_class
¶
get_object
¶
get_permissions
¶
Source code in hypha/apply/api/v1/views.py
open
¶
Source code in hypha/apply/api/v1/views.py
SubmissionCommentViewSet
¶
Bases: SubmissionNestedMixin
, ListModelMixin
, CreateModelMixin
, GenericViewSet
List all the comments on a submission.
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsApplyStaffUser)
pagination_class
class-attribute
instance-attribute
¶
pagination_class = StandardResultsSetPagination
get_submission_object
¶
get_queryset
¶
perform_create
¶
Add a comment on a submission.
Source code in hypha/apply/api/v1/views.py
CommentViewSet
¶
Bases: GenericViewSet
Edit a comment.
permission_classes
class-attribute
instance-attribute
¶
permission_classes = (IsAuthenticated, IsAuthor)