Small fix on get user story by ref

remotes/origin/issue/4795/notification_even_they_are_disabled
Jesús Espino 2016-08-03 08:47:07 +02:00
parent dd53c153c7
commit f78159e564
1 changed files with 2 additions and 2 deletions

View File

@ -289,8 +289,8 @@ class UserStoryViewSet(OCCResourceMixin, VotedResourceMixin, HistoryResourceMixi
if "ref" not in request.QUERY_PARAMS: if "ref" not in request.QUERY_PARAMS:
return response.BadRequest(_("ref param is needed")) return response.BadRequest(_("ref param is needed"))
if "project_slug" not in request.QUERY_PARAMS and "project_id" not in request.QUERY_PARAMS: if "project_slug" not in request.QUERY_PARAMS and "project" not in request.QUERY_PARAMS:
return response.BadRequest(_("project_id or project_slug param is needed")) return response.BadRequest(_("project or project_slug param is needed"))
retrieve_kwargs = { retrieve_kwargs = {
"ref": request.QUERY_PARAMS["ref"] "ref": request.QUERY_PARAMS["ref"]