Merge "register replace_underscores filter for templates"

This commit is contained in:
Jenkins 2013-05-22 03:01:47 +00:00 committed by Gerrit Code Review
commit 8259aab360
1 changed files with 3 additions and 0 deletions

View File

@ -14,6 +14,9 @@
# License for the specific language governing permissions and limitations
# under the License.
from django.template.defaultfilters import register
@register.filter
def replace_underscores(string):
return string.replace("_", " ")