# Third-Party
from rest_framework import serializers

# Django
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

# Local Django
from Users.models import User
from Car.models import Car


class CarSerializer(serializers.ModelSerializer):
    tip = serializers.CharField(source='get_tip_display')

    class Meta:
        model = Car
        fields = ('id', 'plate', 'color', 'type')


class CarListSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('id', 'plate', 'color' ,'type')


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('plate', 'color', 'type')


class CarUpdateSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('plate', 'color')

0f353cbc1936879cdf6ab795c8b1526257345df5
<mask token>


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color', 'type'


class CarUpdateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color'

<mask token>


class CarListSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'id', 'plate', 'color', 'type'


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color', 'type'


class CarUpdateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color'

<mask token>


class CarSerializer(serializers.ModelSerializer):
    <mask token>


    class Meta:
        model = Car
        fields = 'id', 'plate', 'color', 'type'


class CarListSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'id', 'plate', 'color', 'type'


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color', 'type'


class CarUpdateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color'

from rest_framework import serializers
from django.conf import settings
from django.utils.translation import ugettext_lazy as _
from Users.models import User
from Car.models import Car


class CarSerializer(serializers.ModelSerializer):
    tip = serializers.CharField(source='get_tip_display')


    class Meta:
        model = Car
        fields = 'id', 'plate', 'color', 'type'


class CarListSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'id', 'plate', 'color', 'type'


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color', 'type'


class CarUpdateSerializer(CarSerializer):


    class Meta:
        model = Car
        fields = 'plate', 'color'

# Third-Party
from rest_framework import serializers

# Django
from django.conf import settings
from django.utils.translation import ugettext_lazy as _

# Local Django
from Users.models import User
from Car.models import Car


class CarSerializer(serializers.ModelSerializer):
    tip = serializers.CharField(source='get_tip_display')

    class Meta:
        model = Car
        fields = ('id', 'plate', 'color', 'type')


class CarListSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('id', 'plate', 'color' ,'type')


class CarRetrieveSerializer(CarSerializer):
    pass


class CarCreateSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('plate', 'color', 'type')


class CarUpdateSerializer(CarSerializer):

    class Meta:
        model = Car
        fields = ('plate', 'color')
