def add_userprofile(user):
    new_userprofile = UserProfile()
    new_userprofile.user = user
    new_userprofile.save()
Make a new userprofile, and connect it to a new user.
dataset/ETHPy150Open openlearningtools/opencompetencies/competencies/my_admin.py/add_userprofile