Here is an example query taken from the Django API.
Blog.objects.filter(name__startswith='Beatles')
How would I programmatically replace "name" in the filter above? If I were using ruby, I might do something like:
"#{var}"__startswith='Beatles'
I'd like to do this because I have a bunch of filters that I'd like to apply one after the other, and would like to be able to loop through these filters (e.g. name, occupation, address, etc.) without listing out each of the queries one by one.