certappunti
This commit is contained in:
parent
e7ffbe9fab
commit
7acaddb460
|
@ -154,6 +154,9 @@ class CertappunitViewset(PageOrNot, ListModelMixin, GenericViewSet):
|
|||
|
||||
@action(methods=['put'], detail=True, perms_map={'put':'certapp_access'}, url_name='certappunit_access')
|
||||
def access(self, request, pk=None):
|
||||
"""
|
||||
单元评定
|
||||
"""
|
||||
obj = self.get_object()
|
||||
obj.decision = Dict.objects.get(pk=request.data['decision'])
|
||||
obj.save()
|
||||
|
|
Loading…
Reference in New Issue