Skip to content
Snippets Groups Projects
Commit 52ffa83f authored by Ernesto Rico Schmidt's avatar Ernesto Rico Schmidt
Browse files

Add RRule serializer

parent d6aaae80
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,7 @@ from program.models import (
MusicFocus,
Note,
NoteLink,
RRule,
Schedule,
Show,
ShowLink,
......@@ -444,6 +445,16 @@ class ShowSerializer(serializers.HyperlinkedModelSerializer):
return instance
class RRuleSerializer(serializers.ModelSerializer):
class Meta:
model = RRule
fields = (
"id",
"name",
)
read_only_fields = fields
class ScheduleSerializer(serializers.ModelSerializer):
class Meta:
model = Schedule
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment