App Display Label Template Filter Workaround

1
2
3
4
5
6
@register.filter
def niceLabel(label, arg=None):
    label = label.replace("_", " ")
    label = label.title()
    
    return label

More like this

  1. Subdirectory and subcontext include template tag with examples by t_rybik 4 years ago
  2. Rendering radio-buttons with icons instead of labels by jeverling 4 years, 1 month ago
  3. Random Quotes by ferretsrule 6 years, 10 months ago
  4. Wiki-like markup for sub templates by luckystarr 6 years, 7 months ago
  5. Reorder fields directly in the ModelForm by HM 5 years, 11 months ago

Comments

(Forgotten your password?)