mirror of
https://github.com/django/django.git
synced 2025-10-24 06:06:09 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
@@ -42,11 +42,11 @@ class Person(models.Model):
|
||||
class BookManager(models.Manager):
|
||||
def create(self, *args, **kwargs):
|
||||
kwargs.pop('extra_arg', None)
|
||||
return super(BookManager, self).create(*args, **kwargs)
|
||||
return super().create(*args, **kwargs)
|
||||
|
||||
def get_or_create(self, *args, **kwargs):
|
||||
kwargs.pop('extra_arg', None)
|
||||
return super(BookManager, self).get_or_create(*args, **kwargs)
|
||||
return super().get_or_create(*args, **kwargs)
|
||||
|
||||
|
||||
class Book(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user