#29413: QuerySet.get_or_create()/update_or_create() shouldn't evaluate lazy
defaults unless they are needed
-------------------------------------+-------------------------------------
     Reporter:  Viktor Danyliuk      |                    Owner:  Liuyang
         Type:                       |  Qin
  Cleanup/optimization               |                   Status:  closed
    Component:  Database layer       |                  Version:  2.0
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:  fixed
     Keywords:  QuerySet             |             Triage Stage:  Accepted
  get_or_create update_or_create     |
  lazy                               |
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Tim Graham <timograham@…>):

 * status:  assigned => closed
 * resolution:   => fixed


Comment:

 In [changeset:"6ae7aaa7d6eb880043c4c80009b36e2287bfcb92" 6ae7aaa]:
 {{{
 #!CommitTicketReference repository=""
 revision="6ae7aaa7d6eb880043c4c80009b36e2287bfcb92"
 Fixed #29413 -- Prevented evaluation of
 QuerySet.get_or_create()/update_or_create() defaults unless needed.

 Removed the logic added in 81e05a418dc6f347d9627373288e773c477a9fe0 which
 was obsolete since dbffffa7dc95fc62cbecfd00284bde62ee796f48.
 }}}

-- 
Ticket URL: <https://code.djangoproject.com/ticket/29413#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.449202f40e9097d416597deefa654151%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to