From 2f39705d9af8f83c0a2fbb7dd73ff58756dae84e Mon Sep 17 00:00:00 2001 From: Luca Date: Sun, 7 May 2023 02:30:09 +0200 Subject: [PATCH] Pass created_at of latest model to list_incoming_sms instead of the model itself --- shiftregister/team/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shiftregister/team/tasks.py b/shiftregister/team/tasks.py index 7e30a93..8e2cfac 100644 --- a/shiftregister/team/tasks.py +++ b/shiftregister/team/tasks.py @@ -11,7 +11,7 @@ def receive_messages(): return try: - from_dt = IncomingMessage.objects.latest() + from_dt = IncomingMessage.objects.latest().created_at except IncomingMessage.DoesNotExist: from_dt = None