mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 12:30:11 +03:00
Merge a761a9406c
into 836e49b535
This commit is contained in:
commit
d4d73ea249
|
@ -524,6 +524,9 @@ class SchemaGenerator(object):
|
||||||
model = getattr(getattr(view, 'queryset', None), 'model', None)
|
model = getattr(getattr(view, 'queryset', None), 'model', None)
|
||||||
fields = []
|
fields = []
|
||||||
|
|
||||||
|
if not hasattr(uritemplate, 'variables'):
|
||||||
|
return fields
|
||||||
|
|
||||||
for variable in uritemplate.variables(path):
|
for variable in uritemplate.variables(path):
|
||||||
title = ''
|
title = ''
|
||||||
description = ''
|
description = ''
|
||||||
|
|
Loading…
Reference in New Issue
Block a user