The following lte and gte filter queries returns 0 objects:
Here's models.py
class River(models.Model):
dt_timestamp = models.DateTimeField()
stage = models.DecimalField(max_digits=10, decimal_places=3, blank=True, null=True)
runoff = models.DecimalField(max_digits=10, decimal_places=3)
api.py
class RiverResults(ModelResource):
class Meta:
queryset = River.objects.all()
resource_name = 'river'
authorization = Authorization()
filtering = {
'user': ALL_WITH_RELATIONS,
'dt_timestamp': ALL
'stage': ALL,
'runoff': ALL,
}
In settings.py USE_TZ = False
Am running Postgresql 9.3, Django 1.6 and Tastypie 0.12.2.
Not sure what am doing wrong.