add a function to get the id of the hidden status

This commit is contained in:
Andreas Zweili 2018-01-28 20:39:22 +01:00
parent 68a8110aea
commit e76b3cb80d
1 changed files with 6 additions and 0 deletions

View File

@ -20,6 +20,12 @@ def get_categories():
{i: Category.objects.filter(parent_category=i.id)})
return category_list
def get_hidden_status_id():
hidden_status = ArticleStatus.objects.get(name="hidden")
return hidden_status.id
category_list = get_categories()
return render(request,
'webshop/index.html',