def get_content_object(self, page, language, ctype):
        """Gets the latest published :class:`Content <pages.models.Content>`
        for a particular page, language and placeholder type."""
        params = {
            'language': language,
            'type': ctype,
            'page': None if page is fake_page else page
        }
        if page.freeze_date:
            params['creation_date__lte'] = page.freeze_date
        return self.filter(**params).latest()
def get_content_object ( self , page , language , ctype ) : params = { 'language' : language , 'type' : ctype , 'page' : None if page is fake_page else page } if page . freeze_date : params [ 'creation_date__lte' ] = page . freeze_date return self . filter ( ** params ) . latest ( )
Gets the latest published :class:`Content <pages.models.Content>`
        for a particular page, language and placeholder type.