Hi everyone, I need to return a queryset using the "in" statement. My IDs are in an array of int values.
vehicle_ids = [1, 2, 3] If I do: vehicles = VehiclePhoto.objects.filter(vehicle__id__in= [vehicle_ids]) I get a type error: sequence item 0, expected string, int found. I've tried just about every combination I can think of, but can't seem to pass in a list of IDs. Can someone shed some light on what I'm doing wrong? Many TIA, Brandon --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---