def user_model_attributes(user, service):
    ignore_fields = ['id', 'password']
    attributes = {}
    for field in user._meta.fields:
        if field.name not in ignore_fields:
            attributes[field.name] = getattr(user, field.name)
    return attributes
Find a quaternion that rotates one 3d vector to parallel another.
dataset/ETHPy150Open jbittel/django-mama-cas/mama_cas/callbacks.py/user_model_attributes--crossover with--dataset/ETHPy150Open hhatto/autopep8/test/vectors_example.py/quangle