#12247: update on empty queryset in which the update kwargs refer to inherited
columns update all rows of base table
---------------------------------------------------+------------------------
Reporter: jsmullyan | Owner: matiasb
Status: assigned | Milestone: 1.2
Component: Database layer (models, ORM) | Version: 1.1
Resolution: | Keywords:
Stage: Accepted | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------------+------------------------
Comment (by jkocherhans):
The patch looks pretty good, and seems to fix the problem, but I wonder if
the bug isn't another level down. This seems to be triggered when
`self.related_ids` is `[]`, so we're essentially calling
`query.add_filter(('pk__in', []))`. It seems like `pk__in=[]` should
essentially be a no-op, but it sounds like it's actually selecting
everything.
--
Ticket URL: <http://code.djangoproject.com/ticket/12247#comment:7>
Django <http://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 post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.