in django_app/logistics/orders.py [0:0]
def authuser(request):
max_cust_id=Customer.objects.all().aggregate(Max('id'))['id__max']
cust_id=randrange(2,max_cust_id)
customer=Customer.objects.get(id=randrange(2,Customer.objects.all().aggregate(Max('id'))['id__max']))
context = {
"customer": customer,
}
return render(request, "authuser.html", context)