This fix results in models.NullBooleanField rendering as a checkbox in the browsable API

This commit is contained in:
dpetzel 2013-10-18 21:13:20 -04:00
parent c3aeb16557
commit 17a00be830

View File

@ -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,
}