WIP: Aureplop/kpsul js refactor #501

Draft
delobell wants to merge 215 commits from aureplop/kpsul_js_refactor into master
Showing only changes of commit fe6823fc7b - Show all commits

View file

@ -1349,11 +1349,14 @@ def kpsul_articles_data(request):
for article in articles: for article in articles:
articlelist.append({ articlelist.append({
'type': 'article',
'content': {
'id': article.id, 'id': article.id,
'name': article.name, 'name': article.name,
'price': article.price, 'price': article.price,
'stock': article.stock, 'stock': article.stock,
'category': { },
'parent': {
'id': article.category.id, 'id': article.category.id,
'name': article.category.name, 'name': article.category.name,
} }