summaryrefslogtreecommitdiff
path: root/django/forms/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/forms/models.py')
-rw-r--r--django/forms/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/forms/models.py b/django/forms/models.py
index a0f3ff53b3..de0ab6c28d 100644
--- a/django/forms/models.py
+++ b/django/forms/models.py
@@ -1165,7 +1165,7 @@ class ModelChoiceField(ChoiceField):
def __deepcopy__(self, memo):
result = super(ChoiceField, self).__deepcopy__(memo)
# Need to force a new ModelChoiceIterator to be created, bug #11183
- result.queryset = result.queryset
+ result.queryset = self.queryset.all()
return result
def _get_queryset(self):