summaryrefslogtreecommitdiff
path: root/chimere/templatetags/unlocalize_point.py
blob: bbcd72207060c08f5b83c6efcde0394337f60ffb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/env python
# -*- coding: utf-8 -*-

from django import template

register = template.Library()


def unlocalize_point(value):
    """
    Basic unlocalize filter for django 1.2
    """
    return str(value).replace(',', '.')

register.filter(unlocalize_point)