def fbapp_recommended(context): POPULAR_FILMS_NUMBER = getattr(settings, 'POPULAR_FILMS_MAIN_PAGE_NUMBER') all_films = top_recommendations_all(context, POPULAR_FILMS_NUMBER) return { 'all_films': all_films, }
def fbapp_recommended(context): POPULAR_FILMS_NUMBER = getattr(settings, 'POPULAR_FILMS_MAIN_PAGE_NUMBER') all_films = top_recommendations_all(context, POPULAR_FILMS_NUMBER) return{ 'all_films': all_films, }
def render(self, context): context[self.var_name] = top_recommendations_all(context, self.count) return ''
def render( self, context ): context[self.var_name] = top_recommendations_all( context, self.count ) return ''