2
0
Fork 0

Pass created_at of latest model to list_incoming_sms instead of the model itself

This commit is contained in:
Luca 2023-05-07 02:30:09 +02:00
parent 021c11aefd
commit 2f39705d9a
1 changed files with 1 additions and 1 deletions

View File

@ -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