mirror of
https://github.com/django/django.git
synced 2025-11-25 21:22:14 +00:00
Refs #23919 -- Removed most of remaining six usage
Thanks Tim Graham for the review.
This commit is contained in:
parent
7b2f2e74ad
commit
2b281cc35e
180 changed files with 421 additions and 559 deletions
|
|
@ -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."""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue