Do you only need to serialize Q objects? No aggregation / annotations?

On Tue, Apr 21, 2015 at 8:00 AM, guettli <[email protected]> wrote:

>
>
> Am Montag, 20. April 2015 17:12:21 UTC+2 schrieb Vijay Khemlani:
>>
>> Are the queries associated with a certain form? Or they are arbitrary
>> queries?
>>
>>
> Good question. I would prefer a solution which is not associated with a
> form. It is
> only associated with a model.
>
> Otherwise it would be easy. I just need to store the input values of the
> form.
>
> I know that is very hard to make all filtering features available. But at
> least the basic
> filtering should be serializable.
>
> Regards,
>   Thomas Güttler
>
>
>> On Mon, Apr 20, 2015 at 10:01 AM, guettli <[email protected]> wrote:
>>
>>> We want to store the QuerySet query (not the result) some how.
>>>
>>> Background: users should be able to save a complex query as "my favorite
>>> query".
>>>
>>> Pickling querysets is possible, but version updates are not supported:
>>>
>>>
>>> https://docs.djangoproject.com/en/1.8/ref/models/querysets/#pickling-querysets
>>>
>>> Simple queries (without OR) could be saved as dictionary.
>>>
>>> I have in mind some mini language which enables to store Q object
>>> instances:
>>>
>>>  Q(foo='bar', blu='bla') | Q(foo='x', blu='y')
>>>
>>> And ordering ....
>>>
>>> Before reinventing the wheel, I want to ask if someone has seen or done
>>> something like this before.
>>>
>>> I could not find an existing project. But maybe I used the wrong
>>> keywords for
>>> my favorite search engine.
>>>
>>> Regards,
>>>   Thomas Güttler
>>>
>>> --
>>> 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/3f75c38e-d2c9-480c-9103-e4ea1bad8f88%40googlegroups.com
>>> <https://groups.google.com/d/msgid/django-users/3f75c38e-d2c9-480c-9103-e4ea1bad8f88%40googlegroups.com?utm_medium=email&utm_source=footer>
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>
>>  --
> 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/a8cc7fc6-4969-4d88-b39f-bd1511cfed54%40googlegroups.com
> <https://groups.google.com/d/msgid/django-users/a8cc7fc6-4969-4d88-b39f-bd1511cfed54%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CALn3ei30NBAQAZUknW91dZVVSZVnJ0KYpEYsyjRfSmFY20AJtw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to