summaryrefslogtreecommitdiff
path: root/tests/queryset_pickle/models.py
diff options
context:
space:
mode:
authorchillaranand <anand21nanda@gmail.com>2017-01-21 18:43:44 +0530
committerTim Graham <timograham@gmail.com>2017-01-25 12:23:46 -0500
commitd6eaf7c0183cd04b78f2a55e1d60bb7e59598310 (patch)
treeab02fd9949d4bfa23e27dea45e213ce334c883f0 /tests/queryset_pickle/models.py
parentdc165ec8e5698ffc6dee6b510f1f92c9fd7467fe (diff)
downloaddjango-d6eaf7c0183cd04b78f2a55e1d60bb7e59598310.tar.gz
Refs #23919 -- Replaced super(ClassName, self) with super().
Diffstat (limited to 'tests/queryset_pickle/models.py')
-rw-r--r--tests/queryset_pickle/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/queryset_pickle/models.py b/tests/queryset_pickle/models.py
index dbd570a30b..a5c0d15441 100644
--- a/tests/queryset_pickle/models.py
+++ b/tests/queryset_pickle/models.py
@@ -16,14 +16,14 @@ class Numbers:
class PreviousDjangoVersionQuerySet(models.QuerySet):
def __getstate__(self):
- state = super(PreviousDjangoVersionQuerySet, self).__getstate__()
+ state = super().__getstate__()
state[DJANGO_VERSION_PICKLE_KEY] = '1.0'
return state
class MissingDjangoVersionQuerySet(models.QuerySet):
def __getstate__(self):
- state = super(MissingDjangoVersionQuerySet, self).__getstate__()
+ state = super().__getstate__()
del state[DJANGO_VERSION_PICKLE_KEY]
return state