#29009: Error using jsonpickle.encode() on a QuerySet with a Subquery: "This queryset contains a reference to an outer query and may only be used in a subquery" -------------------------------------+------------------------------------- Reporter: Vasiliy Maryutenkov | Owner: nobody Type: Uncategorized | Status: closed Component: Database layer | Version: 2.0 (models, ORM) | Severity: Normal | Resolution: invalid Keywords: | Triage Stage: | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by Tim Graham):
* status: new => closed * resolution: => invalid Comment: I'm not sure how `jsonpickle.encode()` works but if it's trying to evaluate `investors_qs.query`, as a string, then I see that the exception raised is in the path that generates the SQL. In general, "is it a bug?" questions should go to our support channels. See TicketClosingReasons/UseSupportChannels. -- Ticket URL: <https://code.djangoproject.com/ticket/29009#comment:1> 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 django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.6b6381e593ab20a1bf99f7c4b74809b6%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.