Changeset 192:a8fb72f9ad53


Ignore:
Timestamp:
14/08/10 02:00:20 (3 years ago)
Author:
nicoechaniz <nico@…>
Branch:
default
Message:

fixed CategoryLabeledIconList? view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cyclope/core/collections/frontend_views.py

    r189 r192  
    6464    is_default = True 
    6565    template = "collections/category_teaser_list.html" 
     66    items_per_page = cyc_settings.CYCLOPE_PAGINATION['TEASER'] 
     67 
    6668    def get_string_response(self, request, content_object=None, *args, **kwargs): 
    6769        category = content_object 
     
    8082        categorizations_list = category.categorizations.order_by('article__date') 
    8183 
    82         paginator = Paginator(categorizations_list, cyc_settings.CYCLOPE_PAGINATION['TEASER']) 
     84        paginator = Paginator(categorizations_list, self.items_per_page) 
    8385 
    8486        # Make sure page request is an int. If not, deliver first page. 
     
    112114    template = "collections/category_labeled_icon_list.html" 
    113115    is_default = False 
     116    items_per_page = cyc_settings.CYCLOPE_PAGINATION['LABELED_ICON'] 
    114117 
    115118frontend.site.register_view(Category, CategoryLabeledIconList()) 
Note: See TracChangeset for help on using the changeset viewer.