def get(self, user):
        try:
            obj = super(UserPreferencesManager, self).get(user=user)
        except ObjectDoesNotExist:
            obj = self.create(user=user)
        return obj
(User) -> UserPreferences
dataset/ETHPy150Open linkfloyd/linkfloyd/linkfloyd/preferences/models.py/UserPreferencesManager.get