I'm new to python and django and I'm trying to do dynamic queries.
Can't quite get it to work right, however. This is what I'm trying to
do.

field = "desc"
query = User.objects.filter(  field  = "john")

but meaning `field` the variable, not the column. I don't think that
python does that, then what do i do to get dynamic column names?

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