Browse Source

Fix #1286 (#1349)

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

3
sapl/crispy_layout_mixin.py

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

Loading…
Cancel
Save