fitler = Q()   (Django query object, I can't remember the exact library)
for url in microsite_urls:
    filter = filter | Q(url__contains=url)
active_users = SavedSearch.objects.filter(filter).values_list('user', flat=True)