summaryrefslogtreecommitdiff
path: root/django/db/models/utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/db/models/utils.py')
-rw-r--r--django/db/models/utils.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/django/db/models/utils.py b/django/db/models/utils.py
index 764ca5888b..a8bd20fba7 100644
--- a/django/db/models/utils.py
+++ b/django/db/models/utils.py
@@ -45,4 +45,8 @@ def create_namedtuple_class(*names):
def __reduce__(self):
return unpickle_named_row, (names, tuple(self))
- return type('Row', (namedtuple('Row', names),), {'__reduce__': __reduce__})
+ return type(
+ 'Row',
+ (namedtuple('Row', names),),
+ {'__reduce__': __reduce__, '__slots__': ()},
+ )