@@ -44,11 +44,18 @@ You can determine your currently installed version using `pip show`:
4444
4545** Date** : [ 1st October 2018] [ 3.9.0-milestone ]
4646
47- <!-- TODO: Add Additional Notes -->
4847* Improvements to ViewSet extra actions [ #5605 ] [ gh5605 ]
4948* Fix action support for ViewSet suffixes [ #6081 ] [ gh6081 ]
5049* Deprecate the ` Router.register ` ` base_name ` argument in favor of ` basename ` . [ #5990 ] [ gh5990 ]
5150* Deprecate the ` Router.get_default_base_name ` method in favor of ` Router.get_default_basename ` . [ #5990 ] [ gh5990 ]
51+ * Change ` CharField ` to disallow null bytes. [ #6073 ] [ gh6073 ]
52+ To revert to the old behavior, subclass ` CharField ` and remove ` ProhibitNullCharactersValidator ` from the validators.
53+ ``` python
54+ class NullableCharField (serializers .CharField ):
55+ def __init__ (self , * args , ** kwargs ):
56+ super ().__init__ (* args, ** kwargs)
57+ self .validators = [v for v in self .validators if not isinstance (v, ProhibitNullCharactersValidator)]
58+ ```
5259
5360* Allow nullable BooleanField in Django 2.1 [ #6183 ] [ gh6183 ]
5461* Add testing of Python 3.7 support [ #6141 ] [ gh6141 ]
@@ -2035,3 +2042,4 @@ For older release notes, [please see the version 2.x documentation][old-release-
20352042[ gh6075 ] : https://github.com/encode/django-rest-framework/issues/6075
20362043[ gh6138 ] : https://github.com/encode/django-rest-framework/issues/6138
20372044[ gh6081 ] : https://github.com/encode/django-rest-framework/issues/6081
2045+ [ gh6073 ] : https://github.com/encode/django-rest-framework/issues/6073
0 commit comments