Thanks Alex.  I'm not sure why this works for you, but not in my
code.  The only difference I see is the '**' you have preceding your
use of the filter argument.  What is the significance of that?

The following:

ln[1]: filter = {'id__exact':'100'}
ln[2]: mgr = getattr(eval(mn), 'objects')
ln[3]: objs = mgr.filter(filter)

or

ln[3]: objs = modelName.objects.filter(filter)

both result in an attribute error:

AttributeError("'dict' object has no attribute 'get_sql'",)

ln[3]: objs = mgr.filter(**filter)

results in a type error:

TypeError('filter() keywords must be strings',)

Explicitly coding with the modelName results in the same error.  Do I
need to use a Query Dict, rather than just a standard Python dict to
get this to work?
--~--~---------~--~----~------------~-------~--~----~
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