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:
>
>>
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"
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)
3 matches
Mail list logo