

def get(self, user):
    ' (User) -> UserPreferences\n\n        Returns UserPreferences for given user.\n        If does not exists, creates it.\n        '
    try:
        obj = super(UserPreferencesManager, obj).get(user=user)
    except ObjectDoesNotExist:
        obj = self.create(user=user)
    return obj

dataset/ETHPy150Open linkfloyd/linkfloyd/linkfloyd/preferences/models.py UserPreferencesManager.get/VarMisuse@24/71 `self`->`obj`