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