Ejemplo n.º 1
0
 def get(self, activation_key):
   account = RegistrationProfile.activate_user(activation_key)
   context = {'account': account,
              'expiration_duration': settings.ACCOUNT_ACTIVATION_DURATION}
   for key, value in self.extra_context.items():
     context[key] = callable(value) and value() or value
   return render_to_response(self.template_name, context)
Ejemplo n.º 2
0
 def get(self, activation_key):
     account = RegistrationProfile.activate_user(activation_key)
     context = {
         'account': account,
         'expiration_duration': settings.ACCOUNT_ACTIVATION_DURATION
     }
     for key, value in self.extra_context.items():
         context[key] = callable(value) and value() or value
     return render_to_response(self.template_name, context)