typos
This commit is contained in:
parent
be5a90cf67
commit
fdce944820
2 changed files with 3 additions and 3 deletions
|
@ -78,7 +78,7 @@ class ActivityTemplateSerializer(serializers.ModelSerializer):
|
||||||
instance.save()
|
instance.save()
|
||||||
tags = [ActivityTag.objects.get_or_create(event=event, **tag_data)[0]
|
tags = [ActivityTag.objects.get_or_create(event=event, **tag_data)[0]
|
||||||
for tag_data in tags_data]
|
for tag_data in tags_data]
|
||||||
instance.tags = tags
|
instance.tags.set(tags)
|
||||||
return instance
|
return instance
|
||||||
|
|
||||||
def create(self, validated_data):
|
def create(self, validated_data):
|
||||||
|
|
|
@ -15,11 +15,11 @@ class EventSpecificViewSet(ModelViewSet):
|
||||||
"""
|
"""
|
||||||
ViewSet that returns :
|
ViewSet that returns :
|
||||||
* rootlevel objects if no Event is specified
|
* 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
|
AND root level objects
|
||||||
if an event is specified it passes the event_pk
|
if an event is specified it passes the event_pk
|
||||||
to the save method. Works fine with serializers.EventSpecificSerializer
|
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):
|
def get_queryset(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue