Skip to content

Commit

Permalink
fix serializer field
Browse files Browse the repository at this point in the history
  • Loading branch information
jeriox committed Apr 3, 2024
1 parent 601aa4f commit d69234f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pretix_wallet/serializers.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from django.db import transaction
from pretix.base.models import Item, Order, OrderPosition, GiftCardTransaction
from rest_framework.exceptions import ValidationError
from rest_framework.fields import SerializerMethodField, CharField, ListField, DateTimeField, IntegerField
from rest_framework.fields import SerializerMethodField, CharField, ListField, DateTimeField, IntegerField, FloatField
from rest_framework.serializers import Serializer, ModelSerializer

from pretix_wallet.models import CustomerWallet
Expand Down Expand Up @@ -79,7 +79,7 @@ def create(self, validated_data):


class CustomerWalletSerializer(ModelSerializer):
initial_balance = IntegerField(write_only=True, required=False)
initial_balance = FloatField(write_only=True, required=False)
token_id = CharField(write_only=True, required=False)
customer = CustomerRelatedField(slug_field="identifier")

Expand Down

0 comments on commit d69234f

Please sign in to comment.