On 25 Temmuz, 02:23, David <[email protected]> wrote:
> I used this syntax
>
> .extra(where=['%s >= %s - %s'], params=['criteria1_metric1',
> 'criteria1_metric2',  'criteria1_value'])
>
> however I got error.

You seem to be using the variables' names as strings:
>>> criteria1_metric1 = 'somevalue'
>>> criteria1_metric1
'somevalue'
>>> 'criteria1_metric1'
'criteria1_metric1'
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to