Add correct syntax to category data

This commit is contained in:
Ludovic Stephan 2017-03-16 01:20:06 -03:00
parent 08d1521d81
commit 3d76079439

View file

@ -1357,8 +1357,11 @@ def kpsul_articles_data(request):
'stock': article.stock,
},
'parent': {
'type': 'category',
'content': {
'id': article.category.id,
'name': article.category.name,
},
}
})
return JsonResponse(articlelist, safe=False)