asifpy / django-crudbuilder

Generic CRUD implementation in Django
https://django-crudbuilder.readthedocs.org/en/latest/index.html
Apache License 2.0
193 stars 67 forks source link

The template tag `get_verbose_field_name` should not apply title case #45

Closed polwel closed 7 years ago

polwel commented 7 years ago

The get_verbose_field_name tag title-cases its output. This is not always desirable. For instance, if the field is labelled by an acronym, like ISBN or EAN-13, then the title cased version reads Isbn and Ean-13.

I suggest that get_verbose_field_name does only return the actual field name, as suggested by its name. Then, if required, the templates should take care of piping the output to either title or capfirst.

polwel commented 7 years ago

Cool, thanks for the swift fix.