1 2 3 4 5 6 | @register.filter
def niceLabel(label, arg=None):
label = label.replace("_", " ")
label = label.title()
return label
|
More like this
- Flatpage Suggester Template tag for 404 templates by bradmontgomery 3 years, 3 months ago
- Admin Model Sorting by programmerDan 1 year, 9 months ago
- Filtering foreignkey fields in django admin by forgems 3 years, 11 months ago
- Split a string to a list and add to select options by xuqingkuang 4 years, 1 month ago
- Rendering radio-buttons with icons instead of labels by jeverling 3 years, 2 months ago
Comments