(users)
return users
Annotate a User queryset with a two_factor_enabled field
Annotate a User queryset with a two_factor_enabled field
Annotate a User queryset with a two_factor_enabled field
def _augment_users_with_two_factor_enabled(users):
    """Annotate a User queryset with a two_factor_enabled field"""
    for user in users:
        user.two_factor_enabled = bool(default_device(user))
    return users
def _augment_users_with_two_factor_enabled ( users ) : for user in users : user . two_factor_enabled = bool ( default_device ( user ) ) return users