diff --git a/rest_framework/schemas.py b/rest_framework/schemas.py index 042d4bb9c..7106afc41 100644 --- a/rest_framework/schemas.py +++ b/rest_framework/schemas.py @@ -471,11 +471,7 @@ class SchemaGenerator(object): If the 'title' attribute is not set on the view, then an empty title is returned. """ - title = "" - if hasattr(view, "title"): - title = view.title - - return title + return getattr(view, 'title', '') def get_description(self, path, method, view): """