#31926: Queryset crashes when recreated from a pickled query with
FilteredRelation
used in aggregation.
-------------------------------------+-------------------------------------
Reporter: Beda Kosata | Owner: nobody
Type: Bug | Status: new
Component: Database layer | Version: 2.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
-------------------------------------+-------------------------------------
Comment (by Beda Kosata):
Just a note, the failing queryset does not have to be constructed using
the
{{{
qs2 = Publication.objects.all()
qs2.query = pickle.loads(pickle.dumps(qs.query))
}}}
The same problem occurs even if the whole queryset is pickled and
unpickled and then a copy is created by calling `.all()`.
{{{
qs2 = pickle.loads(pickle.dumps(qs)).all()
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/31926#comment:2>
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/064.a0ffd28dcacc626355e566999928fb42%40djangoproject.com.