Infer ChoiceField type from model field when in ModelSerializer

Fixes part of issue #69
This commit is contained in:
Cristi Vîjdea
2018-02-26 20:31:12 +02:00
parent 3f7ad62950
commit ee46f59fb1
7 changed files with 67 additions and 13 deletions
+11
View File
@@ -3,6 +3,17 @@ Changelog
#########
*********
**1.4.4**
*********
*Release date: Feb 26, 2018*
- **IMPROVED:** ``type`` for ``ChoiceField`` generated by a ``ModelSerializer`` from a model field with ``choices=...``
will now be set according to the associated model field (:issue:`69`)
- **FIXED:** ``lookup_field`` and ``lookup_value_regex`` on the same ``ViewSet`` will no longer trigger an exception
(:issue:`68`)
*********
**1.4.3**
*********