

@property
def older_post(self):
    qs = Post.objects.published()
    if self.is_published:
        qs = qs.filter(published__lt=self.published)
    return next(iter(self), None)

dataset/ETHPy150Open pinax/pinax-blog/pinax/blog/models.py Post.older_post/VarMisuse@49/56 `qs`->`self`