mirror of
https://github.com/django/django.git
synced 2025-11-07 07:15:35 +00:00
Fixed #26638 -- Allowed callable arguments for QuerySet.get_or_create()/update_or_create() defaults.
This commit is contained in:
@@ -175,7 +175,10 @@ Migrations
|
||||
Models
|
||||
~~~~~~
|
||||
|
||||
* ...
|
||||
* Added support for callable values in the ``defaults`` argument of
|
||||
:meth:`QuerySet.update_or_create()
|
||||
<django.db.models.query.QuerySet.update_or_create>` and
|
||||
:meth:`~django.db.models.query.QuerySet.get_or_create`.
|
||||
|
||||
Requests and Responses
|
||||
~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
Reference in New Issue
Block a user