Add 'exclude' attribute to TransactionSerializer

Creating a ModelSerializer without either the 'fields' attribute or the
'exclude' attribute has been deprecated since 3.3.0
This commit is contained in:
Santiago L 2021-06-08 10:23:04 +02:00
parent 5e7a823205
commit 9a3b6dcbc3

View file

@ -43,3 +43,4 @@ class PaymentSourceSerializer(AccountSerializerMixin, serializers.HyperlinkedMod
class TransactionSerializer(AccountSerializerMixin, serializers.HyperlinkedModelSerializer):
class Meta:
model = Transaction
exclude = ('process',)