This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from django.http import QueryDict | |
from rest_framework import serializers | |
class TestAllowBlank: | |
def test_query_dict_without_default(self): | |
""" | |
For a non-required CharField that allows blanks an empty string | |
is omitted from the validated serializer data if passed as |