mirror of
https://github.com/django/django.git
synced 2025-09-09 20:16:32 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
parent
edee5a8de6
commit
2c69824e5a
63 changed files with 145 additions and 150 deletions
|
@ -318,8 +318,8 @@ class AbstractInheritanceTests(TestCase):
|
|||
|
||||
def fields(model):
|
||||
if not hasattr(model, '_meta'):
|
||||
return list()
|
||||
return list((f.name, f.__class__) for f in model._meta.get_fields())
|
||||
return []
|
||||
return [(f.name, f.__class__) for f in model._meta.get_fields()]
|
||||
|
||||
model_dict = {'__module__': 'model_inheritance'}
|
||||
model1 = type('Model1', (AbstractModel, Mixin), model_dict.copy())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue