#35073: models.SET's callable is called when there are no objects to update.
-------------------------------------+-------------------------------------
     Reporter:  Fabio Sangiovanni    |                    Owner:  O'ktamjon
         Type:  Bug                  |                   Status:  assigned
    Component:  Database layer       |                  Version:  4.2
  (models, ORM)                      |
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  0                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  0
Easy pickings:  0                    |                    UI/UX:  0
-------------------------------------+-------------------------------------
Changes (by Simon Charette):

 * stage:  Unreviewed => Accepted


Comment:

 We should fix that.

 I think the most straightforward solution is to only set `lazy_sub_objs =
 True` on the function returned by `SET` if the value is not a callable.
 The same problem exists for `SET_DEFAULT` when the default is callable.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/35073#comment:3>
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/0107018cc5edfa69-3707c88a-4a75-42d9-863d-b7f76052fc7b-000000%40eu-central-1.amazonses.com.

Reply via email to