Detect type of SlugRelatedField with readonly=True (#83)

* Added test for #82 - readonly SlugRelatedField not showing format uuid
* Added ArticleGroup model
* Added example of SlugRelatedField to a uuid field with and without readonly
* Check remote_field.model in get_related_model

Closes #82.
This commit is contained in:
John Carter authored and Cristi Vîjdea committed 2018-03-10 13:29:20 +02:00
1 parent 2c459024d1
commit fb240f6a5b
6 files changed
+67 -3

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ Changelog
*Release date: TODO*
- **IMPROVED:** ``serializers.HiddenField`` are now hidden (:issue:`78`)
- **IMPROVED:** format is now detected for ``SlugRelatedField`` with ``read_only=True`` (:issue:`82`)
*********
**1.4.7**