Pass created_at of latest model to list_incoming_sms instead of the model itself
This commit is contained in:
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…
Reference in New Issue