Fix payment update updates

This commit is contained in:
fnux 2020-03-05 11:28:43 +01:00
commit 7e278228bd
2 changed files with 7 additions and 0 deletions

View file

@ -41,6 +41,8 @@ class PaymentMethodViewSet(viewsets.ModelViewSet):
def get_serializer_class(self):
if self.action == 'create':
return CreatePaymentMethodSerializer
elif self.action == 'update':
return UpdatePaymentMethodSerializer
elif self.action == 'charge':
return ChargePaymentMethodSerializer
else: