Commits

Anonymous committed a404cfc

0.3p2

  • Participants
  • Parent commits 2dad68f

Comments (0)

Files changed (3)

File CHANGELOG.txt

 =============================
 
 
-Version 0.3, 22 September 2007:
+Version 0.3p2, 23 September 2007:
+---------------------------------
+
+* Packaged from revision 100 in Subversion.
+
+* Fixed ``activate`` view to actually take the ``template_name``
+  argument.
+
+
+Version 0.3p1, 22 September 2007:
+---------------------------------
+
+* Packaged from revision 99 in Subversion.
+
+* Fixed a typo in docs/overview.txt.
+
+* Fixed a typo in bin/delete_expired_users.py.
+
+* Added French translation.
+
+
+Version 0.3, 19 September 2007:
 -------------------------------
 
-Packaged from revision 99 in Subversion; download at
+Packaged from revision 89 in Subversion; download at
 http://django-registration.googlecode.com/files/registration-0.3.tar.gz
 
 * Changed ``register`` and ``activate`` views to accept

File registration/views.py

 from registration.models import RegistrationProfile
 
 
-def activate(request, activation_key):
+def activate(request, activation_key, template_name='registration/activate.html'):
     """
     Activates a ``User``'s account, if their key is valid and hasn't
     expired.
     """
     activation_key = activation_key.lower() # Normalize before trying anything with it.
     account = RegistrationProfile.objects.activate_user(activation_key)
-    return render_to_response('registration/activate.html',
+    return render_to_response(template_name,
                               { 'account': account,
                                 'expiration_days': settings.ACCOUNT_ACTIVATION_DAYS },
                               context_instance=RequestContext(request))
 from distutils.core import setup
 
 setup(name='registration',
-      version='0.3',
+      version='0.3p2',
       description='User-registration application for Django',
       author='James Bennett',
       author_email='james@b-list.org',