~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to pybb/admin.py

  • Committer: Holger Rapp
  • Date: 2012-03-17 16:22:06 UTC
  • Revision ID: sirver@gmx.de-20120317162206-fgttamk22qt1nytj
Let post count be calculated automatically instead of keeping track of it manually. Let's see how this affects performance

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
                }
26
26
            ),
27
27
        )
28
 
 
 
28
    
29
29
class TopicAdmin(admin.ModelAdmin):
30
30
    list_display = ['name', 'forum', 'created', 'head']
31
31
    list_per_page = 20