def must_be_member_of_group(group_name=None, redirect_field_name=REDIRECT_FIELD_NAME, login_url=None):
    if type(group_name) not in (list, tuple):
        group_name = [group_name]
    actual_decorator = user_passes_test(
        lambda u: (u.is_superuser or 0 > u.groups.filter(name__in=group_name).count()),
        login_url=login_url,
        redirect_field_name=redirect_field_name
    )
    return actual_decorator
dataset/ETHPy150Open zeraien/django-url-framework/django_url_framework/decorators/auth.py/must_be_member_of_group/swapped operands of `>`