summaryrefslogtreecommitdiff
path: root/tests/base
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2017-01-07 12:11:46 +0100
committerClaude Paroz <claude@2xlibre.net>2017-01-18 21:33:28 +0100
commit2b281cc35ed9d997614ca3c416928d7fabfef1ad (patch)
treed3e73cf44b15139aa9f1f53e398942ba64f5e190 /tests/base
parent7b2f2e74adb36a4334e83130f6abc2f79d395235 (diff)
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
Diffstat (limited to 'tests/base')
-rw-r--r--tests/base/models.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/base/models.py b/tests/base/models.py
index fb91522717..b179878704 100644
--- a/tests/base/models.py
+++ b/tests/base/models.py
@@ -1,5 +1,4 @@
from django.db import models
-from django.utils import six
# The models definitions below used to crash. Generating models dynamically
@@ -11,5 +10,5 @@ class CustomBaseModel(models.base.ModelBase):
pass
-class MyModel(six.with_metaclass(CustomBaseModel, models.Model)):
- """Model subclass with a custom base using six.with_metaclass."""
+class MyModel(models.Model, metaclass=CustomBaseModel):
+ """Model subclass with a custom base using metaclass."""