Use set_user_preference instead of UserPreference.set_preference, which is gone now.
Use set_user_preference instead of UserPreference.set_preference, which is gone now.

edx-solutions/edx-platform,edx-solutions/edx-platform,edx-solutions/edx-platform,edx-solutions/edx-platform