mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-18 12:12:19 +03:00
Update rest_framework/schemas/coreapi.py
This commit is contained in:
parent
43f87cd0b1
commit
3592a14b05
|
@ -622,5 +622,5 @@ class ManualSchema(ViewInspector):
|
||||||
def is_enabled():
|
def is_enabled():
|
||||||
"""Is CoreAPI Mode enabled?"""
|
"""Is CoreAPI Mode enabled?"""
|
||||||
if coreapi is not None:
|
if coreapi is not None:
|
||||||
warnings.warn('CoreAPI compatibility is deprecated and will be removed in DRF 3.15', RemovedInDRF315Warning)
|
warnings.warn('CoreAPI compatibility is deprecated and will be removed in DRF 3.17', RemovedInDRF317Warning)
|
||||||
return issubclass(api_settings.DEFAULT_SCHEMA_CLASS, AutoSchema)
|
return issubclass(api_settings.DEFAULT_SCHEMA_CLASS, AutoSchema)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user