Skip to content

Commit

Permalink
Merge pull request mozilla#1801 from ngokevin/iarc201
Browse files Browse the repository at this point in the history
change content rating create to 201 (bug 975908)
  • Loading branch information
ngokevin committed Feb 26, 2014
2 parents 8231336 + 627e727 commit 3e1b7b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mkt/api/tests/test_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ def test_post_content_ratings(self):
url = reverse('app-content-ratings', kwargs={'pk': app.pk})
res = self.client.post(url, data=json.dumps(
{'submission_id': 50, 'security_code': 'AB12CD3'}))
eq_(res.status_code, 204)
eq_(res.status_code, 201)
eq_(res.content, '')

def test_post_content_ratings_bad(self):
Expand Down
2 changes: 1 addition & 1 deletion mkt/webapps/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ def content_ratings(self, request, *args, **kwargs):
if form.is_valid():
try:
form.save(app)
return Response(status=status.HTTP_204_NO_CONTENT)
return Response(status=status.HTTP_201_CREATED)
except django_forms.ValidationError:
pass

Expand Down

0 comments on commit 3e1b7b4

Please sign in to comment.