diff options
| author | Andreas Pelme | 2013-02-14 21:19:51 +0100 |
|---|---|---|
| committer | Andreas Pelme | 2013-02-14 21:19:51 +0100 |
| commit | 5a5df18d182d43d993da8f0b5d4a8888e868fcae (patch) | |
| tree | 7de7b40330976a8573fa3f62d8e194ab924cedd7 /docs/api-guide/fields.md | |
| parent | de029561d0cbb090c0d704811551b2d611472288 (diff) | |
| download | django-rest-framework-5a5df18d182d43d993da8f0b5d4a8888e868fcae.tar.bz2 | |
Added a serializer TimeField
Diffstat (limited to 'docs/api-guide/fields.md')
| -rw-r--r-- | docs/api-guide/fields.md | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/api-guide/fields.md b/docs/api-guide/fields.md index 3f8a36e2..8c28273b 100644 --- a/docs/api-guide/fields.md +++ b/docs/api-guide/fields.md @@ -199,10 +199,16 @@ If you want to override this behavior, you'll need to declare the `DateTimeField class CommentSerializer(serializers.ModelSerializer): created = serializers.DateTimeField() - + class Meta: model = Comment +## TimeField + +A time representation. + +Corresponds to `django.db.models.fields.TimeField` + ## IntegerField An integer representation. |
