Browse Source

Fix #1286 (#1349)

pull/1361/head
Eduardo Calil 7 years ago
committed by Edward
parent
commit
588bdeb1d1
  1. 5
      sapl/crispy_layout_mixin.py

5
sapl/crispy_layout_mixin.py

@ -67,7 +67,10 @@ def get_field_display(obj, fieldname):
ou mesmo uma método no model.
"""
value = getattr(obj, fieldname)
verbose_name = ''
try:
verbose_name = value.model._meta.verbose_name
except AttributeError:
verbose_name = ''
else:
verbose_name = str(field.verbose_name)\

Loading…
Cancel
Save