Add Products tab with edit, remove, and backup

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-07 09:02:04 +03:30
parent 1c63af0a58
commit 2e08cfa0df
10 changed files with 323 additions and 73 deletions

View File

@@ -18,6 +18,12 @@ def entry(request):
})
def products(request):
return render(request, 'slips/products.html', {
'products': Product.objects.all(),
})
def print_queue(request):
pending = Order.objects.select_related('product').filter(status='pending')
history = Order.objects.select_related('product').filter(status='done').order_by('-printed_at')[:20]