wagtail-longclaw/longclaw/longclawshipping/serializers.py

19 wiersze
457 B
Python
Czysty Zwykły widok Historia

from rest_framework import serializers
2017-04-10 15:46:51 +00:00
from django_countries.serializer_fields import CountryField
2017-02-27 21:43:31 +00:00
from longclaw.longclawshipping.models import Address, ShippingRate
class AddressSerializer(serializers.ModelSerializer):
2017-04-10 15:46:51 +00:00
country = CountryField()
class Meta:
model = Address
fields = "__all__"
class ShippingRateSerializer(serializers.ModelSerializer):
class Meta:
model = ShippingRate
fields = "__all__"