def first_department(self):
        if len(self.departments) > 0:
            return self.departments[0]
        else:
            return None
dataset/ETHPy150Open codeforamerica/comport/comport/user/models.py/User.first_department/original