Infer ChoiceField type from model field when in ModelSerializer
Fixes part of issue #69
This commit is contained in:
1 parent
3f7ad62950
commit
ee46f59fb1
7 files changed
+67
-13
No files matched your search
@@ -591,6 +591,16 @@ definitions:
|
||||
cover_name:
|
||||
type: string
|
||||
readOnly: true
|
||||
article_type:
|
||||
description: IntegerField declared on model with choices=(...) and exposed
|
||||
via ModelSerializer
|
||||
type: integer
|
||||
enum:
|
||||
- 1
|
||||
- 2
|
||||
- 3
|
||||
- 7
|
||||
- 8
|
||||
Project:
|
||||
required:
|
||||
- projectName
|
||||
|
||||
Reference in new issue
Block a user