adding fix for smart_text in Django < 1.5