mirror of
https://github.com/TurTaskProject/TurTaskWeb.git
synced 2025-12-18 13:34:08 +01:00
Fix subtask viewset typo error
This commit is contained in:
parent
cfccebf189
commit
97e4cc5a0d
@ -177,7 +177,7 @@ class SubTaskViewset(viewsets.GenericViewSet,
|
||||
def partial_update(self, request, *args, **kwargs):
|
||||
"""Update a subtask."""
|
||||
try:
|
||||
instance = self.get_o
|
||||
instance = self.get_object()
|
||||
serializer = self.get_serializer(instance, data=request.data, partial=True)
|
||||
serializer.is_valid(raise_exception=True)
|
||||
self.perform_update(serializer)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user