Re: Building Q queries

2009-11-04 Thread John Boxall
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:

Building Q queries

2009-11-04 Thread mettwoch
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