diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-02 12:06:32 +0200 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2013-09-02 12:11:02 +0200 |
| commit | 365c3e8b73eab825a8ecd0cf8046e1a0824ccd45 (patch) | |
| tree | f22f78037da5fa34250851e1dace72c4b2e77e78 /tests/base | |
| parent | 4292097078279226cb725c2921011fb14634b9af (diff) | |
Replaced "not PY3" by "PY2", new in six 1.4.0.
Diffstat (limited to 'tests/base')
| -rw-r--r-- | tests/base/models.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/base/models.py b/tests/base/models.py index d47ddcfd66..98d379337c 100644 --- a/tests/base/models.py +++ b/tests/base/models.py @@ -19,7 +19,7 @@ class MyModel(six.with_metaclass(CustomBaseModel, models.Model)): # This is done to ensure that for Python2 only, defining metaclasses # still does not fail to create the model. -if not six.PY3: +if six.PY2: class MyModel(models.Model): """Model subclass with a custom base using __metaclass__.""" __metaclass__ = CustomBaseModel |
