-`input_formats` designates which input formats are supported. This will override the `DATE_INPUT_FORMATS`
-`output_format` designates which output format will be used. This will override the `DATE_OUTPUT_FORMAT`
## DateTimeField
A date and time representation.
Optionally takes `format` as parameter to replace the matching pattern.
Corresponds to `django.db.models.fields.DateTimeField`
When using `ModelSerializer` or `HyperlinkedModelSerializer`, note that any model fields with `auto_now=True` or `auto_now_add=True` will use serializer fields that are `read_only=True` by default.
...
...
@@ -203,12 +213,26 @@ If you want to override this behavior, you'll need to declare the `DateTimeField
@@ -42,7 +42,8 @@ You can determine your currently installed version using `pip freeze`:
### Master
*Request authentication is no longer lazily evaluated, instead authentication is always run, which results in more consistent, obvious behavior. Eg. Supplying bad auth credentials will now always return an error response, even if no permissions are set on the view.
*Support for custom input and output formats for `DateField`, `DateTimeField` and `TimeField`
*Cleanup:Request authentication is no longer lazily evaluated, instead authentication is always run, which results in more consistent, obvious behavior. Eg. Supplying bad auth credentials will now always return an error response, even if no permissions are set on the view.
*Bugfix for serializer data being uncacheable with pickle protocol 0.
*Bugfixes for model field validation edge-cases.
*Bugfix for authtoken migration while using a custom user model and south.