Update rest_framework/schemas/coreapi.py

This commit is contained in:
Asif Saif Uddin 2023-06-12 12:44:22 +06:00 committed by GitHub
parent 43f87cd0b1
commit 3592a14b05
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -622,5 +622,5 @@ class ManualSchema(ViewInspector):
def is_enabled():
"""Is CoreAPI Mode enabled?"""
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)