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

pull/1/head
Luca 2 years ago
parent 021c11aefd
commit 2f39705d9a

@ -11,7 +11,7 @@ def receive_messages():
return return
try: try:
from_dt = IncomingMessage.objects.latest() from_dt = IncomingMessage.objects.latest().created_at
except IncomingMessage.DoesNotExist: except IncomingMessage.DoesNotExist:
from_dt = None from_dt = None

Loading…
Cancel
Save