summaryrefslogtreecommitdiff
path: root/tests/base/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/base/models.py')
-rw-r--r--tests/base/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/base/models.py b/tests/base/models.py
index bddb406820..d47ddcfd66 100644
--- a/tests/base/models.py
+++ b/tests/base/models.py
@@ -14,8 +14,10 @@ class CustomBaseModel(models.base.ModelBase):
class MyModel(six.with_metaclass(CustomBaseModel, models.Model)):
- """Model subclass with a custom base using six.with_metaclass."""
+ """Model subclass with a custom base using six.with_metaclass."""
+# This is done to ensure that for Python2 only, defining metaclasses
+# still does not fail to create the model.
if not six.PY3:
class MyModel(models.Model):