Skip to content

Commit

Permalink
Do not capitalize short_description if given
Browse files Browse the repository at this point in the history
  • Loading branch information
cachitas committed Mar 6, 2019
1 parent 28fe513 commit 49349f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyforms_web/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def get_lookup_verbose_name(model, lookup):
if callable(field) and not isinstance(field, models.Model):

if hasattr(field, 'short_description'):
return field.short_description.title()
return field.short_description
else:
return part.title()

Expand Down

0 comments on commit 49349f5

Please sign in to comment.