#14373: annotate() will gladly delete your data
--------------------------------------+-------------------------------------
Reporter: patrys | Owner: carljm
Status: new | Milestone: 1.3
Component: ORM aggregation | Version: 1.2
Resolution: | Keywords:
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Comment (by carljm):
Ok, out of time for this at the moment; uploaded my initial tests. So far
I haven't been able to reproduce the reported issue on trunk: the new
aggregation_regress test passes. Any further detail from patrys or Luke
(did you reproduce this on trunk when you accepted it?) on what I might be
doing wrong in that test, or what other factor might be involved, would be
welcome.
The other m2m_regress test that I attached does fail. The test verifies
that a TypeError is in fact raised when you assign a non-sequence to an
m2m attribute; but the existing data is nonetheless cleared. Ideally I
would say the argument should be checked before existing data is cleared,
but that really belongs in its own ticket.
--
Ticket URL: <http://code.djangoproject.com/ticket/14373#comment:4>
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.