Commits

Andrii Kostenko  committed a956c32

revert language

  • Participants
  • Parent commits 12ea84e

Comments (0)

Files changed (1)

File registration/tests/views.py

             setattr(settings, k, v)
         if self.old_activation is None:
             settings.ACCOUNT_ACTIVATION_DAYS = 7 # pragma: no cover
+        self.old_language = translation.get_language()
         translation.activate('en')
         django.template.loader.template_source_loaders = None
 
         for k,v in self._settings_attributes.iteritems():
             setattr(settings, k, getattr(self,'old_%s' % k))
         django.template.loader.template_source_loaders = None
+        translation.activate(self.old_language)
 
 
     def test_registration_view_initial(self):