|
|
|
|
|
by pbalau
6 days ago
|
|
if self._midnight(today) returns a datetime object, than: self.filter(end__gt=self._midnight(today))
will evaluate to: self.filter(end__gt=<some_datetime_object>)
While self.filter(Field.end > self._midnight(today))
will evaluate to: self.filter(<True/False>)
|
|
Edit:
You can even make a little adapter to use this with the current filter system if you really want to:
This printsend__gt = 2024-01-01 00:00:00