From fdce944820de73320c0b4a2e38fca5f3df869a86 Mon Sep 17 00:00:00 2001 From: Qwann Date: Wed, 26 Jul 2017 13:11:58 +0200 Subject: [PATCH] typos --- api/event/serializers.py | 2 +- api/event/views.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api/event/serializers.py b/api/event/serializers.py index 8cc80cf..a18794f 100644 --- a/api/event/serializers.py +++ b/api/event/serializers.py @@ -78,7 +78,7 @@ class ActivityTemplateSerializer(serializers.ModelSerializer): instance.save() tags = [ActivityTag.objects.get_or_create(event=event, **tag_data)[0] for tag_data in tags_data] - instance.tags = tags + instance.tags.set(tags) return instance def create(self, validated_data): diff --git a/api/event/views.py b/api/event/views.py index 7add4bf..b360583 100644 --- a/api/event/views.py +++ b/api/event/views.py @@ -15,11 +15,11 @@ class EventSpecificViewSet(ModelViewSet): """ ViewSet that returns : * rootlevel objects if no Event is specified - * OR objects related to the specidied event + * OR objects related to the specified event AND root level objects if an event is specified it passes the event_pk to the save method. Works fine with serializers.EventSpecificSerializer - Useful for models that exetends EventSpecificMixin + Useful for models that extends EventSpecificMixin """ def get_queryset(self): """