diff options
| author | Honza Král <honza.kral@gmail.com> | 2009-06-08 00:56:16 +0000 |
|---|---|---|
| committer | Honza Král <honza.kral@gmail.com> | 2009-06-08 00:56:16 +0000 |
| commit | eea2bfd9416c1adc3d815591018a3bab969a17b1 (patch) | |
| tree | 502119c349e72f8faaebc48b3c60f595e4162a9b | |
| parent | 9dee3b26e58aec526f83c3c81a370764e8fc7bc2 (diff) | |
[soc2009/model-validation] Added a useless import to maintain ackwards compatibility
git-svn-id: http://code.djangoproject.com/svn/django/branches/soc2009/model-validation@10950 bcc190cf-cafb-0310-a4f2-bffc1f526a37
| -rw-r--r-- | django/forms/util.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/forms/util.py b/django/forms/util.py index 8cd1f10f43..b6722108c9 100644 --- a/django/forms/util.py +++ b/django/forms/util.py @@ -2,6 +2,10 @@ from django.utils.html import conditional_escape from django.utils.encoding import StrAndUnicode, force_unicode from django.utils.safestring import mark_safe +# import ValidationError so that it can be imported from this +# module to maintain backwards compatibility +from django.core.exceptions import ValidationError + def flatatt(attrs): """ Convert a dictionary of attributes to a single string. |
