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 <samuelbyansi87@gmail.com> 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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/A09FDF66-9845-4B93-854D-8BBFC4F5A03D%40showmethesource.org.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment