1
0
mirror of https://github.com/django/django.git synced 2024-12-25 18:46:22 +00:00

Advanced deprecations in contrib.formtools.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@15972 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Russell Keith-Magee 2011-04-02 08:34:15 +00:00
parent fe12415231
commit c1df35b0fa

View File

@ -19,7 +19,7 @@ def security_hash(request, form, *args):
""" """
import warnings import warnings
warnings.warn("security_hash is deprecated; use form_hmac instead", warnings.warn("security_hash is deprecated; use form_hmac instead",
PendingDeprecationWarning) DeprecationWarning)
data = [] data = []
for bf in form: for bf in form:
# Get the value from the form data. If the form allows empty or hasn't # Get the value from the form data. If the form allows empty or hasn't