mirror of
https://github.com/django/django.git
synced 2025-08-04 10:59:45 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
parent
dc165ec8e5
commit
d6eaf7c018
339 changed files with 1221 additions and 1296 deletions
|
@ -56,7 +56,7 @@ class FoodQuerySet(models.query.QuerySet):
|
|||
|
||||
class BaseFoodManager(models.Manager):
|
||||
def __init__(self, a, b, c=1, d=2):
|
||||
super(BaseFoodManager, self).__init__()
|
||||
super().__init__()
|
||||
self.args = (a, b, c, d)
|
||||
|
||||
|
||||
|
|
|
@ -628,14 +628,14 @@ class MakeMigrationsTests(MigrationTestBase):
|
|||
"""
|
||||
|
||||
def setUp(self):
|
||||
super(MakeMigrationsTests, self).setUp()
|
||||
super().setUp()
|
||||
self._old_models = apps.app_configs['migrations'].models.copy()
|
||||
|
||||
def tearDown(self):
|
||||
apps.app_configs['migrations'].models = self._old_models
|
||||
apps.all_models['migrations'] = self._old_models
|
||||
apps.clear_cache()
|
||||
super(MakeMigrationsTests, self).tearDown()
|
||||
super().tearDown()
|
||||
|
||||
def test_files_content(self):
|
||||
self.assertTableNotExists("migrations_unicodemodel")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue