From 2b281cc35ed9d997614ca3c416928d7fabfef1ad Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Sat, 7 Jan 2017 12:11:46 +0100 Subject: Refs #23919 -- Removed most of remaining six usage Thanks Tim Graham for the review. --- tests/base/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'tests/base') 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.""" -- cgit v1.3