aboutsummaryrefslogtreecommitdiffstats
path: root/djangorestframework/utils/description.py
diff options
context:
space:
mode:
Diffstat (limited to 'djangorestframework/utils/description.py')
-rw-r--r--djangorestframework/utils/description.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/djangorestframework/utils/description.py b/djangorestframework/utils/description.py
index ce61e558..096cf57f 100644
--- a/djangorestframework/utils/description.py
+++ b/djangorestframework/utils/description.py
@@ -50,7 +50,6 @@ def get_name(view):
return re.sub('(((?<=[a-z])[A-Z])|([A-Z](?![A-Z]|$)))', ' \\1', name).strip()
-
def get_description(view):
"""
Provide a description for the view.
@@ -63,7 +62,6 @@ def get_description(view):
if getattr(view, 'cls_instance', None):
view = view.cls_instance
-
# If this view has a resource that's been overridden, then use the resource's doctring
if getattr(view, 'resource', None) not in (None, Resource, FormResource, ModelResource):
doc = view.resource.__doc__
@@ -88,4 +86,3 @@ def get_description(view):
# otherwise return it as-is
return doc
-