def fun_function(**kwargs):
    """Find working ice cream promo"""
    results = Promo.objects.active()
    results = results.filter(
        Q(name__startswith=name) | Q(description__icontains=name))
    results = results.exclude(status='melted')
    results = results.select_related('flavors')
    return results
def fun_function(**kwargs):
    """Find working ice cream promo"""
    # Too much query chaining makes code go off the screen or page. Not good.
    return Promo.objects.active().filter(
        Q(name__startswith=name)
        | Q(description__icontains=name)).exclude(status='melted')