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.

