Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Building Q queries
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mettwoch  
View profile  
 More options Nov 5, 3:00 am
From: mettwoch <mettw...@pt.lu>
Date: Wed, 4 Nov 2009 08:00:02 -0800 (PST)
Local: Thurs, Nov 5 2009 3:00 am
Subject: Building Q queries
Hi,

I wonder if I can use the Q object to build queries interactively and
store them for repeated use. I imagine building up the tree of the Q
object in a simple web interface that introspects the models, shows
the fields and some operators and let the user build, name and store
queries for later use. Could you point me to a source of information
that could help me developing this.

Marc


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
John Boxall  
View profile  
 More options Nov 5, 6:09 am
From: John Boxall <bisha...@gmail.com>
Date: Wed, 4 Nov 2009 11:09:36 -0800 (PST)
Local: Thurs, Nov 5 2009 6:09 am
Subject: Re: Building Q queries
Hey Marc,

You can store queryset by pickling them - you might find this
documentation helpful:
http://docs.djangoproject.com/en/dev/ref/models/querysets/#id2

I could imagine an interface that combined Alex's django-filter with a
Model for storing the pickled query objects to implement your idea:
http://github.com/alex/django-filter

Cheers,

John

On Nov 4, 8:00 am, mettwoch <mettw...@pt.lu> wrote:


    Reply    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google