settings
+ change data (username, name, email)
This commit is contained in:
parent
05ee124c6d
commit
ed52d5c8c4
13 changed files with 130 additions and 4 deletions
|
|
@ -45,8 +45,12 @@ def objlist(request, orderstr=None):
|
|||
return render(request, 'object_lister/details.html', context)
|
||||
|
||||
categories = Category.categories.all()
|
||||
count = 0
|
||||
for obj in objects:
|
||||
if obj.removed_date is None:
|
||||
count +=1
|
||||
|
||||
context = {'title': 'Inventar', 'objects': objects, 'objammout': len(objects), 'categories': categories,
|
||||
context = {'title': 'Inventar', 'objects': objects, 'objammout': count, 'categories': categories,
|
||||
'ncats': len(categories)}
|
||||
return render(request, 'object_lister/index.html', context)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue