summaryrefslogtreecommitdiff
path: root/django/utils
diff options
context:
space:
mode:
authorJaap Roes <jaap@eight.nl>2014-10-10 12:40:13 +0200
committerTim Graham <timograham@gmail.com>2014-10-10 09:22:20 -0400
commit115c307184d441fbc27a8f43a99af5d992cfcc13 (patch)
tree33aaeef0e690508e080157f4add6e7af567fe6e3 /django/utils
parent1b5918f160365b97986f21da1a7c35ffd2d5b0b0 (diff)
Fixed #23613 -- Deprecated django.utils.checksums
Diffstat (limited to 'django/utils')
-rw-r--r--django/utils/checksums.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/django/utils/checksums.py b/django/utils/checksums.py
index 01c1e68108..40d6814d52 100644
--- a/django/utils/checksums.py
+++ b/django/utils/checksums.py
@@ -4,7 +4,16 @@ Common checksum routines.
__all__ = ['luhn']
+import warnings
+
from django.utils import six
+from django.utils.deprecation import RemovedInDjango20Warning
+
+warnings.warn(
+ "django.utils.checksums will be removed in Django 2.0. The "
+ "luhn() function is now included in django-localflavor 1.1+.",
+ RemovedInDjango20Warning
+)
LUHN_ODD_LOOKUP = (0, 2, 4, 6, 8, 1, 3, 5, 7, 9) # sum_of_digits(index * 2)