23 lines
505 B
Python
23 lines
505 B
Python
from django.contrib.gis.geos import Point
|
|
from rest_framework import serializers
|
|
|
|
from location import models
|
|
from location.serializers import common
|
|
|
|
|
|
class AddressCreateSerializer(common.AddressSerializer):
|
|
"""Address create serializer."""
|
|
|
|
|
|
class CountryBackSerializer(common.CountrySerializer):
|
|
"""Country back-office serializer."""
|
|
|
|
class Meta:
|
|
model = models.Country
|
|
fields = [
|
|
'id',
|
|
'code',
|
|
'svg_image',
|
|
'name',
|
|
]
|