Re: code question

2021-06-29 Thread frank dilorenzo
I thought I had been everywhere on the web but guess not. This really helped me a lot and I have it working now. Thanks a lot! frank- On Tue, Jun 29, 2021 at 7:57 PM Lalit Suthar wrote: > https://youtu.be/SNXn76SI1Ks > try this > > On Wed, Jun 30, 2021, 1:27 AM frank dilorenzo > wrote: > >>

Re: code question

2021-06-29 Thread Lalit Suthar
https://youtu.be/SNXn76SI1Ks try this On Wed, Jun 30, 2021, 1:27 AM frank dilorenzo wrote: > Here is a function view: > > def base(request): > > shipments = Shipment.objects.all().order_by("-slabel")[:5] > > suppliers = Supplier.objects.all() > > > context = { > > "shipments"

code question

2021-06-29 Thread frank dilorenzo
Here is a function view: def base(request): shipments = Shipment.objects.all().order_by("-slabel")[:5] suppliers = Supplier.objects.all() context = { "shipments": shipments, "suppliers": suppliers, } return render(request, "base/dashboard.html", context)