@@ -44,11 +44,18 @@ You can determine your currently installed version using `pip show`:
44
44
45
45
** Date** : [ 1st October 2018] [ 3.9.0-milestone ]
46
46
47
- <!-- TODO: Add Additional Notes -->
48
47
* Improvements to ViewSet extra actions [ #5605 ] [ gh5605 ]
49
48
* Fix action support for ViewSet suffixes [ #6081 ] [ gh6081 ]
50
49
* Deprecate the ` Router.register ` ` base_name ` argument in favor of ` basename ` . [ #5990 ] [ gh5990 ]
51
50
* 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
+ ```
52
59
53
60
* Allow nullable BooleanField in Django 2.1 [ #6183 ] [ gh6183 ]
54
61
* 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-
2035
2042
[ gh6075 ] : https://github.com/encode/django-rest-framework/issues/6075
2036
2043
[ gh6138 ] : https://github.com/encode/django-rest-framework/issues/6138
2037
2044
[ gh6081 ] : https://github.com/encode/django-rest-framework/issues/6081
2045
+ [ gh6073 ] : https://github.com/encode/django-rest-framework/issues/6073
0 commit comments