mirror of
https://github.com/django/django.git
synced 2024-12-22 17:16:24 +00:00
Refs #35561 -- Renamed Model.save()/asave() helper to a more specific name.
This commit is contained in:
parent
8cfcf9a30e
commit
a5215f9a3e
@ -777,7 +777,7 @@ class Model(AltersData, metaclass=ModelBase):
|
||||
return getattr(self, field.attname)
|
||||
|
||||
# RemovedInDjango60Warning: When the deprecation ends, remove completely.
|
||||
def _parse_params(self, *args, method_name, **kwargs):
|
||||
def _parse_save_params(self, *args, method_name, **kwargs):
|
||||
defaults = {
|
||||
"force_insert": False,
|
||||
"force_update": False,
|
||||
@ -835,7 +835,7 @@ class Model(AltersData, metaclass=ModelBase):
|
||||
"""
|
||||
# RemovedInDjango60Warning.
|
||||
if args:
|
||||
force_insert, force_update, using, update_fields = self._parse_params(
|
||||
force_insert, force_update, using, update_fields = self._parse_save_params(
|
||||
*args,
|
||||
method_name="save",
|
||||
force_insert=force_insert,
|
||||
@ -911,7 +911,7 @@ class Model(AltersData, metaclass=ModelBase):
|
||||
):
|
||||
# RemovedInDjango60Warning.
|
||||
if args:
|
||||
force_insert, force_update, using, update_fields = self._parse_params(
|
||||
force_insert, force_update, using, update_fields = self._parse_save_params(
|
||||
*args,
|
||||
method_name="asave",
|
||||
force_insert=force_insert,
|
||||
|
Loading…
Reference in New Issue
Block a user