On Wed, Apr 22, 2015 at 10:27 AM, Jani Tiainen <[email protected]> wrote: > Hi, > > Straight from the docs: > > https://docs.djangoproject.com/en/1.8/ref/models/querysets/#pickling-querysets > > "If you only want to pickle the necessary information to recreate the > QuerySet from the database at a later time, pickle the query attribute of the > QuerySet." > > And in same place there even exists sample code how to restore pickled query. >
And one paragraph later it says: """ You can’t share pickles between versions Pickles of QuerySets are only valid for the version of Django that was used to generate them. If you generate a pickle using Django version N, there is no guarantee that pickle will be readable with Django version N+1. """ > Background: users should be able to save a complex query as "my favorite > query". > > Pickling querysets is possible, but version updates are not supported: I think the OP is aware of this, and is looking for an alternate solution. Cheers Tom -- You received this message because you are subscribed to the Google Groups "Django users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/django-users. To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAFHbX1%2BoQaUTav-koRF2aGovEa_Pk_NiA4w4-jbdT8ZPm%2B6Ofg%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

