OpenSlides/openslides/core/serializers.py

20 lines
436 B
Python
Raw Normal View History

from openslides.utils import rest_api
2015-01-06 00:04:36 +01:00
from .models import CustomSlide, Tag
2015-01-06 00:04:36 +01:00
class CustomSlideSerializer(rest_api.serializers.HyperlinkedModelSerializer):
2015-01-06 00:04:36 +01:00
"""
Serializer for core.models.CustomSlide objects.
2015-01-06 00:04:36 +01:00
"""
class Meta:
model = CustomSlide
class TagSerializer(rest_api.serializers.HyperlinkedModelSerializer):
"""
Serializer for core.models.Tag objects.
"""
class Meta:
model = Tag