Skip to content

Commit

Permalink
Bug fixed (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
Pizzibee authored Jul 25, 2018
1 parent fbde20f commit fbce97a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions backend/api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,9 @@ def cancer_detail(request, pk):
try:
population = Cancer.objects.get(pk=pk)
except Cancer.DoesNotExist:
raise Http404("Populationdeatiled not found")
raise Http404("Cancer Id not found")
serializer = CancerSerializer(population)
return JsonResponse(serializer.data)

def depression_data(request):
data = Depression.objects.all()
Expand All @@ -97,7 +98,7 @@ def depression_detail(request, pk):
try:
population = Depression.objects.get(pk=pk)
except Depression.DoesNotExist:
raise Http404("Depression not found")
raise Http404("Depression Id not found")
serializer = DepressionSerializer(population)
return JsonResponse(serializer.data)

Expand Down

0 comments on commit fbce97a

Please sign in to comment.