from rest_framework import serializers
from apps.city.models import City

__author__ = 'aamish'


class CitySerializer(serializers.ModelSerializer):
    class Meta:
        model = City
        fields = ('id', 'name', 'region')

1aeba12b54d3259cd126a6ea24ca14c92c2a8120
<mask token>

<mask token>


class CitySerializer(serializers.ModelSerializer):


    class Meta:
        model = City
        fields = 'id', 'name', 'region'

<mask token>
__author__ = 'aamish'


class CitySerializer(serializers.ModelSerializer):


    class Meta:
        model = City
        fields = 'id', 'name', 'region'

from rest_framework import serializers
from apps.city.models import City
__author__ = 'aamish'


class CitySerializer(serializers.ModelSerializer):


    class Meta:
        model = City
        fields = 'id', 'name', 'region'

from rest_framework import serializers
from apps.city.models import City

__author__ = 'aamish'


class CitySerializer(serializers.ModelSerializer):
    class Meta:
        model = City
        fields = ('id', 'name', 'region')
