Add Products tab with edit, remove, and backup
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user