  
      def test_empty_html_checkbox_not_required(self):
          """
          HTML checkboxes do not send any value, but should be treated
          as `False` by BooleanField, even if the field is required=False.
          """
          class TestSerializer(serializers.Serializer):
              archived = serializers.BooleanField(required=False)
  
          serializer = TestSerializer(data=QueryDict(''))
 
</s> remove         as `False` by BooleanField.
 </s> add         as `False` by BooleanField if allow_null=False.
        as `False` by BooleanField when the field is required=False
        and allow_null=False.
  
      def test_empty_html_checkbox_not_required(self):
          """
          HTML checkboxes do not send any value, but should be treated
        as `False` by BooleanField when the field is required=False
        and allow_null=False.
          """
          class TestSerializer(serializers.Serializer):
              archived = serializers.BooleanField(required=False)
  
          serializer = TestSerializer(data=QueryDict(''))
keep keep keep keep replace keep keep keep keep keep
 Fix BooleanField's allow_null behavior (#8614)

* Fix BooleanField's allow_null behavior

* Update rest_framework.fields

- Use .get with default value for 'allow_null' kwarg in BooleanField's
  init 
tests/test_fields.py