mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.
This commit is contained in:
@@ -20,6 +20,6 @@ class MyModel(six.with_metaclass(CustomBaseModel, models.Model)):
|
||||
# still does not fail to create the model.
|
||||
|
||||
if six.PY2:
|
||||
class MyModel(models.Model):
|
||||
class MyPython2Model(models.Model):
|
||||
"""Model subclass with a custom base using __metaclass__."""
|
||||
__metaclass__ = CustomBaseModel
|
||||
|
||||
Reference in New Issue
Block a user