If i want to apply check like this in views.py:
now=timezone.now()
if now <= arrival:
messages.error(request, 'Please enter valid Time')
return redirect('add_schedule')
where arrival is datetime field in models.py
It gives error of '<=' not supported between instances of 'datetime.datetime' and 'str', How can i apply this check?