forked from DGNum/gestioCOF
Add correct syntax to category data
This commit is contained in:
parent
08d1521d81
commit
3d76079439
1 changed files with 5 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue