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:
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user