diff options
| author | Tom Christie | 2013-02-06 08:48:41 +0000 |
|---|---|---|
| committer | Tom Christie | 2013-02-06 08:48:41 +0000 |
| commit | efb798cebcac63a0d60442d48c8a2d6102a58149 (patch) | |
| tree | ade1c3ef4f62287f68bfd0f0ec6178d8150e1941 /rest_framework/serializers.py | |
| parent | 280dfa4343fb7cf188f4573361bbec447b8ea7c2 (diff) | |
| download | django-rest-framework-efb798cebcac63a0d60442d48c8a2d6102a58149.tar.bz2 | |
Don't deprecate 'exclude'
Need to track outcome of Django's #19733, and decide on approach
accordingly.
Diffstat (limited to 'rest_framework/serializers.py')
| -rw-r--r-- | rest_framework/serializers.py | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py index d9125e21..b635d20d 100644 --- a/rest_framework/serializers.py +++ b/rest_framework/serializers.py @@ -165,11 +165,6 @@ class BaseSerializer(Field): # Remove anything in 'exclude' if self.opts.exclude: - # Note: To be deprecated in line with Django's ModelForm change. - # https://code.djangoproject.com/ticket/19733 - warnings.warn('`exclude` option on serializers is due to be deprecated. ' - 'Use the `fields` option instead.', - PendingDeprecationWarning, stacklevel=2) for key in self.opts.exclude: ret.pop(key, None) |
