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)