diff --git a/rest_framework/schemas/inspectors.py b/rest_framework/schemas/inspectors.py index aeb19d618..a17a1f1aa 100644 --- a/rest_framework/schemas/inspectors.py +++ b/rest_framework/schemas/inspectors.py @@ -164,8 +164,8 @@ class ViewInspector(object): def view(self): """View property.""" assert self._view is not None, ( - "Schema generation REQUIRES a view instance. (Hint: you accessed `schema` from " - "the view class rather than an instance.) " + "Schema generation REQUIRES a view instance. (Hint: you accessed " + "`schema` from the view class rather than an instance.)" ) return self._view