'Return published announcements.'

def published(self):

    now = datetime.now()
    return self.filter(publish_from__lte=now).filter((Q(publish_until__isnull=True) | (Q(publish_until__isnull=False) & Q(publish_until__gt=now))))
