mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-04-25 19:43:47 +03:00
Merge branch 'master' of https://github.com/cartyc/django-rest-framework into cartyc-master
This commit is contained in:
commit
8818aa9d58
|
@ -531,7 +531,7 @@ class SchemaGenerator(object):
|
||||||
try:
|
try:
|
||||||
model_field = model._meta.get_field(variable)
|
model_field = model._meta.get_field(variable)
|
||||||
except:
|
except:
|
||||||
pass
|
model_field = None # Set model_field to None so it doesn't fail test
|
||||||
|
|
||||||
if model_field is not None and model_field.verbose_name:
|
if model_field is not None and model_field.verbose_name:
|
||||||
title = force_text(model_field.verbose_name)
|
title = force_text(model_field.verbose_name)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user