Beispiel #1
0
    def extra_context(self):
        context = super(HomeSearchView, self).extra_context()
        context['intro'] = u"%s" % Site.objects.get_current().name

        context['last_annonces'] = get_ordererd_list(Exchange, 10)     
        context['last_org'] = get_ordererd_list(Organization, 10) 
        context['last_articles'] = get_ordererd_list(Article, 10) 
        return context
Beispiel #2
0
 def extra_context(self):
     context = super(HomeSearchView, self).extra_context()
     context['intro'] = u"%s" % Site.objects.get_current().name
     context['last_tag'] = get_ordererd_list(Tag, 10)     
     context['last_concept'] = get_ordererd_list(Concept, 10) 
     return context