All,

First of all, I would like to thank the developers of Django - this piece of
software is truly genius!

I am in the process of using Django to create a web portal for the
international company that I work with.  If accepted, it will mean that open
source technologies are beginning to be accepted within my workplace -
definitely a great thing!

In the course of writing this program, I have run into a challenge with
regard to the way that things are retrieved and displayed.  The problem is
as follows:

#"var3" is passed in from the following
def Someprog(request, var1, var2, var3)
     #My first attempt to handle this
     var3 = int(var3)
     var4 = var3 - 6   #Subtract six from the value passed in to compare to
another value
     #The issue deals with "var4" in this line
     Some.object.filter(id = var1).filter(value =
var2).extra(where=['Cost>%s'], params=['var4'])

I am getting an error from Microsoft SQL server because it doesn't like the
variable being passed - it complains about having to convert this variable
and it cannot (or doesn't want to)

Any thoughts of another way to pass this integer or make this work?

Thank you so much!

Robb

--~--~---------~--~----~------------~-------~--~----~
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