summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Charette <charette.s@gmail.com>2017-07-13 02:51:24 -0400
committerSimon Charette <charette.s@gmail.com>2017-07-21 00:23:21 -0400
commit76236f0db2d6afe14c08393cef676f0f3939f7d8 (patch)
tree427435ebdf12993f1fa3381cb0bb475cd9dc7bf8
parent160969d97080b53e9113cadcecc27c26a51881e8 (diff)
Stopped setting BaseExpression.copied on copy().
Unused since its introduction in f59fd15c4928caf3dfcbd50f6ab47be409a43b01.
-rw-r--r--django/db/models/expressions.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/django/db/models/expressions.py b/django/db/models/expressions.py
index e4c0e1307a..f43bd50c06 100644
--- a/django/db/models/expressions.py
+++ b/django/db/models/expressions.py
@@ -292,9 +292,7 @@ class BaseExpression:
return clone
def copy(self):
- c = copy.copy(self)
- c.copied = True
- return c
+ return copy.copy(self)
def get_group_by_cols(self):
if not self.contains_aggregate: