Commit 61af8a48 authored by Luis García's avatar Luis García
Browse files

Change method for finish a consultation

parent 8e78ad7b
......@@ -79,7 +79,7 @@ class ConsultationViewSet(DestroyToInvisibleMixin, OwnerFieldMixin, ModelViewSet
request.POST._mutable = mutable
return super(ConsultationViewSet, self).create(request, *args, **kwargs)
@action(detail=True, methods=['get'], permission_classes=[IsSuperOrReadOnly])
@action(detail=True, methods=['post'], permission_classes=[IsSuperOrReadOnly])
def finish_consultation(self, request, pk=None):
#Revisar esta parte
status = StatusMethod('project_consultation').last()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment