Commits

David Chambers  committed c5ebec7

Fixed issue #10 as suggested by soypunk.

  • Participants
  • Parent commits c8c8a11

Comments (0)

Files changed (1)

 from django.core import urlresolvers
 from django.core.cache import cache
 from django.template import Context, loader
+from django.utils.encoding import smart_str
 from django.utils.safestring import mark_safe
 
 import mango
                         master._contents = contents
 
             if 'zone' in self.meta:
-                tz = pytz.timezone(canonicalize(self.meta['zone'], TIME_ZONES))
+                tz = pytz.timezone(smart_str(canonicalize(self.meta['zone'], TIME_ZONES)))
                 if self.meta['zone'] != tz.zone:
                     pattern = RE[self._apt('update_zone', 'zone')]
                     update_post(pattern, r'\2zone:\3%s\n' % tz.zone)