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
1 changed files with 4 additions and 3 deletions

View File

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