mrjoes/flask-admin — pull request #122 by bjourne (2012-12-02 02:06:24+00:00)
Title: use prettify_name so that you can easily override the default prettification strategy

I think the view.prettify_name should be called if _get_label cant get the label any other way. Then I can write:

class MyModelView(ModelView):
def prettify_name(self, name):
if not any(ch in name for ch in ' aeiouy'):
return name.upper()
return name.replace('_', ' ').title()

And automatically have field names that are abbrevations like "http" and "bpm" show up as "HTTP" and "BPM" everywhere instead of as "Http" and "Bpm".