Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions rest_framework/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,5 @@
ISO_8601 = 'iso-8601'


class RemovedInDRF316Warning(DeprecationWarning):
pass


class RemovedInDRF317Warning(PendingDeprecationWarning):
pass
12 changes: 1 addition & 11 deletions rest_framework/schemas/openapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,7 @@
from django.db import models
from django.utils.encoding import force_str

from rest_framework import (
RemovedInDRF316Warning, exceptions, renderers, serializers
)
from rest_framework import exceptions, renderers, serializers
from rest_framework.compat import inflection, uritemplate
from rest_framework.fields import _UnvalidatedField, empty
from rest_framework.settings import api_settings
Expand Down Expand Up @@ -721,11 +719,3 @@ def get_tags(self, path, method):
path = path[1:]

return [path.split('/')[0].replace('_', '-')]

def _get_reference(self, serializer):
warnings.warn(
"Method `_get_reference()` has been renamed to `get_reference()`. "
"The old name will be removed in DRF v3.16.",
RemovedInDRF316Warning, stacklevel=2
)
return self.get_reference(serializer)