mirror of
https://github.com/django/django.git
synced 2025-11-01 20:31:40 +00:00
Fixed "redefinition of unused 'foo' from line X" pyflakes warnings.
This commit is contained in:
parent
cec11a3336
commit
adedc31072
12 changed files with 27 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue