def __str__(self):
        if self.author_id:
            return "%s on %s" % (self.author, self.published)
        return "Anonymous on %s" % self.published
dataset/ETHPy150Open carltongibson/django-filter/tests/models.py/Article.__str__/original