mirror of
https://github.com/django/django.git
synced 2025-10-26 15:16:09 +00:00
Refs #23919 -- Replaced super(ClassName, self) with super().
This commit is contained in:
@@ -53,7 +53,7 @@ class NonAutoPKBook(models.Model):
|
||||
test_pk = random.randint(1, 99999)
|
||||
if not NonAutoPKBook.objects.filter(rand_pk=test_pk).exists():
|
||||
self.rand_pk = test_pk
|
||||
super(NonAutoPKBook, self).save(*args, **kwargs)
|
||||
super().save(*args, **kwargs)
|
||||
|
||||
|
||||
class EditablePKBook(models.Model):
|
||||
|
||||
Reference in New Issue
Block a user