diff options
Diffstat (limited to 'tests/modeltests/custom_pk/fields.py')
| -rw-r--r-- | tests/modeltests/custom_pk/fields.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/modeltests/custom_pk/fields.py b/tests/modeltests/custom_pk/fields.py index d25eeca1d5..2494d5fd2c 100644 --- a/tests/modeltests/custom_pk/fields.py +++ b/tests/modeltests/custom_pk/fields.py @@ -22,8 +22,7 @@ class MyWrapper(object): return self.value == other.value return self.value == other -class MyAutoField(models.CharField): - __metaclass__ = models.SubfieldBase +class MyAutoField(six.with_metaclass(models.SubfieldBase, models.CharField)): def __init__(self, *args, **kwargs): kwargs['max_length'] = 10 |
