mirror of
https://github.com/encode/django-rest-framework.git
synced 2024-11-10 19:56:59 +03:00
This fix results in models.NullBooleanField rendering as a checkbox in the browsable API
This commit is contained in:
parent
c3aeb16557
commit
17a00be830
|
@ -606,6 +606,7 @@ class ModelSerializer(Serializer):
|
|||
models.TextField: CharField,
|
||||
models.CommaSeparatedIntegerField: CharField,
|
||||
models.BooleanField: BooleanField,
|
||||
models.NullBooleanField: BooleanField,
|
||||
models.FileField: FileField,
|
||||
models.ImageField: ImageField,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user