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. Flatpage Suggester Template tag for 404 templates by bradmontgomery 3 years, 3 months ago
  2. Admin Model Sorting by programmerDan 1 year, 9 months ago
  3. Filtering foreignkey fields in django admin by forgems 3 years, 11 months ago
  4. Split a string to a list and add to select options by xuqingkuang 4 years, 1 month ago
  5. Rendering radio-buttons with icons instead of labels by jeverling 3 years, 2 months ago

Comments

(Forgotten your password?)