mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-01 02:50:06 +03:00
message line too long
This commit is contained in:
parent
bf707249b6
commit
7399962c9f
|
@ -163,7 +163,8 @@ class ViewInspector(object):
|
|||
@property
|
||||
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.)"
|
||||
assert self._view is not None, "Schema generation REQUIRES a view instance. (Hint: you accessed `schema` from "\
|
||||
"the view class rather than an instance.) "
|
||||
return self._view
|
||||
|
||||
@view.setter
|
||||
|
@ -498,7 +499,8 @@ class DefaultSchema(ViewInspector):
|
|||
return result
|
||||
|
||||
inspector_class = api_settings.DEFAULT_SCHEMA_CLASS
|
||||
assert issubclass(inspector_class, ViewInspector), "DEFAULT_SCHEMA_CLASS must be set to a ViewInspector (usually an AutoSchema) subclass"
|
||||
assert issubclass(inspector_class, ViewInspector), \
|
||||
"DEFAULT_SCHEMA_CLASS must be set to a ViewInspector (usually an AutoSchema) subclass"
|
||||
inspector = inspector_class()
|
||||
inspector.view = instance
|
||||
return inspector
|
||||
|
|
Loading…
Reference in New Issue
Block a user