Ignore:
Timestamp:
24.05.2010 00:11:30 (21 months ago)
Author:
alafin
Branch:
default
Message:

add cookie collapser for category

File:
1 edited

Legend:

Unmodified
Added
Removed
  • djangobb/djangobb_forum/views.py

    r250 r255  
    5252    for forum in _forums: 
    5353        cat = cats.setdefault(forum.category.id, 
    54             {'cat': forum.category, 'forums': []}) 
     54            {'id': forum.category.id, 'cat': forum.category, 'forums': []}) 
    5555        cat['forums'].append(forum) 
    5656        forums[forum.id] = forum 
     
    5959    cats = sorted(cats.values(), cmpdef) 
    6060 
     61    print cats 
     62     
    6163    to_return = {'cats': cats, 
    6264                'posts': Post.objects.count(), 
Note: See TracChangeset for help on using the changeset viewer.