conflicts.viewsets module

class conflicts.viewsets.IsEditorialAdministrator[source]

Bases: rest_framework.permissions.BasePermission

Check if User is Editorial Administrator to allow permission to API.

has_object_permission(request, view, obj)[source]

Check user’s permissions.

class conflicts.viewsets.ConflictOfInterestViewSet(**kwargs)[source]

Bases: rest_framework.viewsets.ModelViewSet

API view for ConflictOfInterest.

serializer_class

alias of conflicts.serializers.ConflictOfInterestSerializer

permission_classes = [<class 'rest_framework.permissions.IsAuthenticated'>, <class 'conflicts.viewsets.IsEditorialAdministrator'>]
verify_conflict(request, pk=None)[source]

Verify a ConflictOfInterest or delete.

basename = None
description = None
detail = None
name = None
suffix = None