1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Refs #23919 -- Removed most of remaining six usage

Thanks Tim Graham for the review.
This commit is contained in:
Claude Paroz
2017-01-07 12:11:46 +01:00
parent 7b2f2e74ad
commit 2b281cc35e
180 changed files with 421 additions and 559 deletions

View File

@@ -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."""