mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-03-28 04:11:34 +01:00
fix: partial updates broken due to validation
This commit is contained in:
@@ -27,6 +27,10 @@ class TransactionViewSet(viewsets.ModelViewSet):
|
||||
instance = serializer.save()
|
||||
transaction_updated.send(sender=instance)
|
||||
|
||||
def partial_update(self, request, *args, **kwargs):
|
||||
kwargs["partial"] = True
|
||||
return self.update(request, *args, **kwargs)
|
||||
|
||||
|
||||
class TransactionCategoryViewSet(viewsets.ModelViewSet):
|
||||
queryset = TransactionCategory.objects.all()
|
||||
|
||||
Reference in New Issue
Block a user