I have model like this:
class Order(models.Model):
dateTime = models.DateTimeField()
and I want to get object with specific hour how can I do that? the code below doesn't work:
o=Order.objects.get(dateTime.hour=12)
and has this problem: keyword can't be an expression
now.. How should I give the order object with specific time?