toastdriven/django-tastypie — Issue #385: DateTimeField filtering should allow the serializer's encoding of dates, not just Django's
Author: jcspray
Created: 2012-02-23 13:58:59+00:00
State: open

For fields generated by ModelResource from django's DateTimeField, my dates come out in ISO8601, just as I want. However, when I try to use an ISO8601 date as an argument to filters like myfield__gte, the string value gets all the way to Django and I get a "Enter a valid date/time in YYYY-MM-DD HH:MM[:ss[.uuuuuu]] format." exception.

Tastypie should convert datetimes from the format used by the serializer into the format expected by django when they are used as filtering arguments.