mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-07-28 00:49:49 +03:00
fix get_schema_view
This commit is contained in:
parent
34820a1233
commit
83fd1f05f3
|
@ -42,10 +42,14 @@ def get_schema_view(
|
||||||
else:
|
else:
|
||||||
generator_class = openapi.SchemaGenerator
|
generator_class = openapi.SchemaGenerator
|
||||||
|
|
||||||
|
kwargs = {}
|
||||||
|
if issubclass(generator_class, openapi.SchemaGenerator):
|
||||||
|
kwargs['tag_objects'] = tag_objects
|
||||||
|
|
||||||
generator = generator_class(
|
generator = generator_class(
|
||||||
title=title, url=url, description=description,
|
title=title, url=url, description=description,
|
||||||
urlconf=urlconf, patterns=patterns, version=version,
|
urlconf=urlconf, patterns=patterns, version=version,
|
||||||
tag_objects=tag_objects
|
**kwargs,
|
||||||
)
|
)
|
||||||
|
|
||||||
# Avoid import cycle on APIView
|
# Avoid import cycle on APIView
|
||||||
|
|
Loading…
Reference in New Issue
Block a user