Change node.type to node.modelname for clarity
This commit is contained in:
parent
fc3e86aea6
commit
3465dd7045
3 changed files with 17 additions and 17 deletions
|
@ -1349,7 +1349,7 @@ def kpsul_articles_data(request):
|
|||
|
||||
for article in articles:
|
||||
articlelist.append({
|
||||
'type': 'article',
|
||||
'modelname': 'article',
|
||||
'content': {
|
||||
'id': article.id,
|
||||
'name': article.name,
|
||||
|
@ -1357,7 +1357,7 @@ def kpsul_articles_data(request):
|
|||
'stock': article.stock,
|
||||
},
|
||||
'parent': {
|
||||
'type': 'category',
|
||||
'modelname': 'category',
|
||||
'content': {
|
||||
'id': article.category.id,
|
||||
'name': article.category.name,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue