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