mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23968 -- Removed unnecessary lists, generators, and tuple calls.
This commit is contained in:
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user