diff options
| author | Justin Bronn <jbronn@gmail.com> | 2008-08-05 17:15:33 +0000 |
|---|---|---|
| committer | Justin Bronn <jbronn@gmail.com> | 2008-08-05 17:15:33 +0000 |
| commit | aa239e3e5405933af6a29dac3cf587b59a099927 (patch) | |
| tree | ea2cbd139c9a8cf84c09e0b2008bff70e05927ef /django/contrib/formtools/wizard.py | |
| parent | 45b73c9a4685809236f84046cc7ffd32a50db958 (diff) | |
gis: Merged revisions 7981-8001,8003-8011,8013-8033,8035-8036,8038-8039,8041-8063,8065-8076,8078-8139,8141-8154,8156-8214 via svnmerge from trunk.archive/attic/gis
git-svn-id: http://code.djangoproject.com/svn/django/branches/gis@8215 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/contrib/formtools/wizard.py')
| -rw-r--r-- | django/contrib/formtools/wizard.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/django/contrib/formtools/wizard.py b/django/contrib/formtools/wizard.py index 7b96d91187..984b6e487e 100644 --- a/django/contrib/formtools/wizard.py +++ b/django/contrib/formtools/wizard.py @@ -4,13 +4,14 @@ step and storing the form's state as HTML hidden fields so that no state is stored on the server side. """ +import cPickle as pickle + from django import forms from django.conf import settings from django.http import Http404 from django.shortcuts import render_to_response from django.template.context import RequestContext -import cPickle as pickle -import md5 +from django.utils.hashcompat import md5_constructor class FormWizard(object): # Dictionary of extra template context variables. @@ -150,7 +151,7 @@ class FormWizard(object): # Use HIGHEST_PROTOCOL because it's the most efficient. It requires # Python 2.3, but Django requires 2.3 anyway, so that's OK. pickled = pickle.dumps(data, pickle.HIGHEST_PROTOCOL) - return md5.new(pickled).hexdigest() + return md5_constructor(pickled).hexdigest() def determine_step(self, request, *args, **kwargs): """ |
