Hi all I'm trying to dynamically generate filter kwargs (in the form of strings) and feed them to a QuerySet, but the queryset wants nothing to do with it. Here's some simplified code:
name = "joe-smith" string = "person__slug__exact" string += "=" + name qs = Person.objects.filter(string) This results in an AttributeError: 'str' object has no attribute 'get_sql'. It seems like I just have to cast the string, but I'm not sure how and to what type. Any thoughts? Is there a better way of doing this? Thanks, Chase --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users -~----------~----~----~----~------~----~------~--~---