nlpmed_portal.annotations.api.viewsets.assignments module¶
- class nlpmed_portal.annotations.api.viewsets.assignments.ProjectMembershipViewSet[source]¶
Bases:
BaseViewSet- queryset¶
- permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'nlpmed_portal.annotations.permissions.MethodBasePermission'>]¶
- required_perms = {'DELETE': 'delete_projectmembership', 'GET': 'view_projectmembership', 'HEAD': 'view_projectmembership', 'OPTIONS': 'view_projectmembership', 'PATCH': 'change_projectmembership', 'POST': 'add_projectmembership', 'PUT': 'change_projectmembership'}¶
- get_serializer_class()[source]¶
Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
- get_object(*args, **kwargs)[source]¶
Returns the object the view is displaying.
You may want to override this if you need to provide non-standard queryset lookups. Eg if objects are referenced using multiple keyword arguments in the url conf.
- get_queryset()[source]¶
Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
- basename = None¶
- description = None¶
- detail = None¶
- name = None¶
- suffix = None¶
- class nlpmed_portal.annotations.api.viewsets.assignments.TaskViewSet[source]¶
Bases:
BaseViewSet- queryset¶
- permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'nlpmed_portal.annotations.permissions.MethodBasePermission'>]¶
- required_perms = {'DELETE': 'delete_task', 'GET': 'view_task', 'HEAD': 'view_task', 'OPTIONS': 'view_task', 'PATCH': 'change_task', 'POST': 'add_task', 'PUT': 'change_task'}¶
- get_serializer_class()[source]¶
Return the class to use for the serializer. Defaults to using self.serializer_class.
You may want to override this if you need to provide different serializations depending on the incoming request.
(Eg. admins get full serialization, others get basic serialization)
- get_queryset()[source]¶
Get the list of items for this view. This must be an iterable, and may be a queryset. Defaults to using self.queryset.
This method should always be used rather than accessing self.queryset directly, as self.queryset gets evaluated only once, and those results are cached for all subsequent requests.
You may want to override this if you need to provide different querysets depending on the incoming request.
(Eg. return a list of items that is specific to the user)
- basename = None¶
- description = None¶
- detail = None¶
- name = None¶
- suffix = None¶