1
0
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:
Will Koster
2016-05-25 15:33:35 -05:00
committed by Tim Graham
parent 44c7e5d374
commit 9899347641
4 changed files with 46 additions and 8 deletions

View File

@@ -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
~~~~~~~~~~~~~~~~~~~~~~