I have the following code and am getting the above error. Since I\'m new to python I\'m having trouble understanding the syntax here and how I can fix the error:
<
This problem arises when you are trying to compare a date field (DateField) and a datetime field (DateTimeField).
DateField
DateTimeField
The solution would be check where you defined the fields in your models and ensure that the types are uniform.
I would suggest you replace all DateField with DateTimeField.