mirror of
https://github.com/django/django.git
synced 2025-07-24 13:44:32 +00:00
Fixed #26620 -- Made Model.refresh_from_db() fail when passed unknown kwargs.
This commit is contained in:
parent
a5c8072ab1
commit
b9ae662c97
3 changed files with 7 additions and 2 deletions
|
@ -128,7 +128,7 @@ in the ``from_db()`` method.
|
|||
Refreshing objects from database
|
||||
================================
|
||||
|
||||
.. method:: Model.refresh_from_db(using=None, fields=None, **kwargs)
|
||||
.. method:: Model.refresh_from_db(using=None, fields=None)
|
||||
|
||||
If you need to reload a model's values from the database, you can use the
|
||||
``refresh_from_db()`` method. When this method is called without arguments the
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue