make generate_swagger work for projects without authentication (#161)
* make generate_swagger work for projects without authentication * use get_user_model instead of importing User
This commit is contained in:
committed by
Cristi Vîjdea
parent
b37ce3227a
commit
db86981dc1
@@ -17,7 +17,7 @@ from drf_yasg.generators import OpenAPISchemaGenerator
|
||||
|
||||
|
||||
def call_generate_swagger(output_file='-', overwrite=False, format='', api_url='',
|
||||
mock=False, user='', private=False, generator_class_name='', **kwargs):
|
||||
mock=False, user=None, private=False, generator_class_name='', **kwargs):
|
||||
out = StringIO()
|
||||
call_command(
|
||||
'generate_swagger', stdout=out,
|
||||
|
||||
Reference in New Issue
Block a user