(self)
Getting news items.
Getting news items.
Getting news items .
def post_processor(self):
        """Getting news items."""
        results_kwargs = {}

        self.data.news_items = NewsItem.objects \
            .filter(**results_kwargs) \
            .order_by('-date_published')[:self.data.max_items]
def post_processor ( self ) : results_kwargs = { } self . data . news_items = NewsItem . objects . filter ( * * results_kwargs ) . order_by ( '-date_published' ) [ : self . data . max_items ]