diff options
| author | Tom Christie | 2013-04-29 12:45:00 +0100 | 
|---|---|---|
| committer | Tom Christie | 2013-04-29 12:45:00 +0100 | 
| commit | dc7b1d643020cac5d585aac42f98962cc7aa6bf7 (patch) | |
| tree | af73e602942e2b566580be7c3827c034c2c3cca4 /rest_framework/fields.py | |
| parent | 70831ad0bb62e88ef93e8c1815444ac709eb9883 (diff) | |
| download | django-rest-framework-dc7b1d643020cac5d585aac42f98962cc7aa6bf7.tar.bz2 | |
2.2's PendingDeprecationWarnings now become DeprecationWarnings.  2.3's PendingDeprecationWarnings added.
Diffstat (limited to 'rest_framework/fields.py')
| -rw-r--r-- | rest_framework/fields.py | 4 | 
1 files changed, 2 insertions, 2 deletions
| diff --git a/rest_framework/fields.py b/rest_framework/fields.py index 38fe025d..f934fc39 100644 --- a/rest_framework/fields.py +++ b/rest_framework/fields.py @@ -200,9 +200,9 @@ class WritableField(Field):          # 'blank' is to be deprecated in favor of 'required'          if blank is not None: -            warnings.warn('The `blank` keyword argument is due to deprecated. ' +            warnings.warn('The `blank` keyword argument is deprecated. '                            'Use the `required` keyword argument instead.', -                          PendingDeprecationWarning, stacklevel=2) +                          DeprecationWarning, stacklevel=2)              required = not(blank)          super(WritableField, self).__init__(source=source) | 
