def get_company_name(self):
        if self.company:
            return self.company.name
        else:
            return self.company_name
Return company name depending on ForeignKey
dataset/ETHPy150Open python/pythondotorg/successstories/models.py/Story.get_company_name