from rest_framework import serializers
from apps.core.models import Color


class ColorSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Color
        fields = ('id', 'name', 'natural_key',)

19aa6e3952b77e6c5fba469ef0d55d03d163801e
<mask token>

<mask token>


class ColorSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Color
        fields = 'id', 'name', 'natural_key'

from rest_framework import serializers
from apps.core.models import Color


class ColorSerializer(serializers.HyperlinkedModelSerializer):


    class Meta:
        model = Color
        fields = 'id', 'name', 'natural_key'

from rest_framework import serializers
from apps.core.models import Color


class ColorSerializer(serializers.HyperlinkedModelSerializer):
    class Meta:
        model = Color
        fields = ('id', 'name', 'natural_key',)
