|
@@ -190,14 +190,13 @@ class BabyView(View):
|
|
try:
|
|
try:
|
|
if not month:
|
|
if not month:
|
|
return response.json(444)
|
|
return response.json(444)
|
|
- developmental_points_qs = DevelopmentalPoints.objects.filter(month).values()
|
|
|
|
|
|
+ developmental_points_qs = DevelopmentalPoints.objects.filter(month=month).values()
|
|
if not developmental_points_qs.exists():
|
|
if not developmental_points_qs.exists():
|
|
return response.json(173)
|
|
return response.json(173)
|
|
title = developmental_points_qs[0]['title']
|
|
title = developmental_points_qs[0]['title']
|
|
weight = developmental_points_qs[0]['weight']
|
|
weight = developmental_points_qs[0]['weight']
|
|
height = developmental_points_qs[0]['height']
|
|
height = developmental_points_qs[0]['height']
|
|
head_circumference = developmental_points_qs[0]['head_circumference']
|
|
head_circumference = developmental_points_qs[0]['head_circumference']
|
|
- advice = developmental_points_qs[0]['advice']
|
|
|
|
content = developmental_points_qs[0]['content']
|
|
content = developmental_points_qs[0]['content']
|
|
|
|
|
|
res = {
|
|
res = {
|
|
@@ -205,7 +204,6 @@ class BabyView(View):
|
|
'weight': weight,
|
|
'weight': weight,
|
|
'height': height,
|
|
'height': height,
|
|
'head_circumference': head_circumference,
|
|
'head_circumference': head_circumference,
|
|
- 'advice': advice,
|
|
|
|
'content': content
|
|
'content': content
|
|
}
|
|
}
|
|
return response.json(0, res)
|
|
return response.json(0, res)
|