One way could be  latest_action=ActionGame.obje
cts.filter(published=published).order_by('-id')[:1]

El jue, 2 mar 2023 a las 17:29, Sandip Bhattacharya (<
[email protected]>) escribió:

> Your problem is still about where the 'published’ value is coming from in
> the call to filter(published=published).
>
> Is it coming from a form? A Get parameter? A post parameter? Extract it
> appropriately before calling filter()
>
>
> > On Mar 2, 2023, at 3:46 AM, Byansi Samuel <[email protected]>
> wrote:
> >
> > def action (request):
> >         latest_action=ActionGame.objects.filter(published=published).
> latest()
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-users/A09FDF66-9845-4B93-854D-8BBFC4F5A03D%40showmethesource.org
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/CAObPVPCuT-XfUWxYXk54urTXbCBgHEe0WDjBrrkXJzcTdHO-jg%40mail.gmail.com.

Reply via email to