Skip to content

Commit

Permalink
[ch #159054014] Delete renderers file
Browse files Browse the repository at this point in the history
  • Loading branch information
dessHub committed Aug 9, 2018
1 parent 544aa0f commit 3c0a2d6
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
4 changes: 0 additions & 4 deletions authors/apps/articles/renderers.py

This file was deleted.

6 changes: 1 addition & 5 deletions authors/apps/articles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ def create(self, request, slug):
""" Rating view"""
ratings = request.data.get("rate", {})
# Filter articles with the given slug
try:
article = Article.objects.filter(slug=slug).first()

except Article.DoesNotExist:
return Response({"errors":{"message":["Article doesnt exist."]}})
article = Article.objects.filter(slug=slug).first()

# Check if article is none
if article is None:
Expand Down

0 comments on commit 3c0a2d6

Please sign in to comment.