1
0
mirror of https://github.com/django/django.git synced 2025-10-26 07:06:08 +00:00

Fixed #17127 -- Made field validators list independent per form instance. Thanks claudep for report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@17046 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Carl Meyer
2011-10-28 14:38:41 +00:00
parent b87114962f
commit 7a718f0f3a
2 changed files with 14 additions and 0 deletions

View File

@@ -178,6 +178,7 @@ class Field(object):
result = copy.copy(self)
memo[id(self)] = result
result.widget = copy.deepcopy(self.widget, memo)
result.validators = self.validators[:]
return result
class CharField(Field):