1
0
mirror of https://github.com/django/django.git synced 2025-10-24 06:06:09 +00:00

Fixed #35060 -- Deprecated passing positional arguments to Model.save()/asave().

This commit is contained in:
Salvo Polizzi
2023-12-31 10:07:13 +01:00
committed by Mariusz Felisiak
parent e29d1870dd
commit 3915d4c70d
8 changed files with 142 additions and 30 deletions

View File

@@ -463,7 +463,7 @@ class Photo(models.Model):
self._savecount = 0
def save(self, force_insert=False, force_update=False):
super().save(force_insert, force_update)
super().save(force_insert=force_insert, force_update=force_update)
self._savecount += 1