Die folgende lte und gte Filterabfragen liefert 0 Objekte:Tastypie dezimal und Datetime-Filter nicht
curl http://localhost/river/river/?runoff__lte=100.0&runoff__gte=150.0
curl http://localhost/river/river/?runoff__lte=100&runoff__gte=150
http://localhost/river/river/?dt_timestamp__lte=2015-01-01T03:00&dt_timestamp__gte=2015-01-07T18:00&format=json
Hier 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
In settings.py USE_TZ = False
leiten Postgresql 9.3, Django 1.6 und Tastypie 0.12.2. Nicht sicher, was falsch ist.
Grüße, Allan