mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 04:20:12 +03:00
Correct docstring
This commit is contained in:
parent
805247e147
commit
d9d9a8159c
|
@ -460,7 +460,7 @@ class ManualSchema(ViewInspector):
|
|||
|
||||
|
||||
class DefaultSchema(object):
|
||||
"""Allows overriding AutoSchema in with DEFAULT_SCHEMA_CLASS setting"""
|
||||
"""Allows overriding AutoSchema using DEFAULT_SCHEMA_CLASS setting"""
|
||||
def __get__(self, instance, owner):
|
||||
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"
|
||||
|
|
Loading…
Reference in New Issue
Block a user