From 4440e7848ddb2d0a46ea99d019bf2aa6c4fd5852 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Espino?= Date: Tue, 10 Mar 2015 13:30:13 +0100 Subject: [PATCH] Fixed special case of serializer selection --- taiga/projects/api.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/taiga/projects/api.py b/taiga/projects/api.py index 417549fe..2cb34264 100644 --- a/taiga/projects/api.py +++ b/taiga/projects/api.py @@ -65,6 +65,8 @@ class ProjectViewSet(ModelCrudViewSet): def get_serializer_class(self): if self.action == "list": return self.list_serializer_class + elif self.action == "create": + return self.serializer_class if self.action == "by_slug": slug = self.request.QUERY_PARAMS.get("slug", None)