'Gets all preferences for a given user
Returns: Set of (preference type, value) pairs for each of the user\'s preferences'

@staticmethod
def get_all_preferences(user):

    return dict([(pref.key, pref.value) for pref in user.preferences.all()])
