Re: Basic question - using variables in object.filter clauses for DB API

2008-12-16 Thread Malcolm Tredinnick
On Tue, 2008-12-16 at 21:35 -0800, steverfran...@gmail.com wrote: > Given I have a variable that's constructed to contain the filter > clause I want, how do I pass it to the object.filter? > > i.e. > TripFilter="priceseason__end__gte=datetime.now()" > > yet

Basic question - using variables in object.filter clauses for DB API

2008-12-16 Thread steverfran...@gmail.com
Given I have a variable that's constructed to contain the filter clause I want, how do I pass it to the object.filter? i.e. TripFilter="priceseason__end__gte=datetime.now()" yet DiveTrip.objects.filter('TripFilter') results in ValueError at /dive/results too many values to unpack Yet