<s> from __future__ import unicode_literals <EOL> __author__ = '<STR_LIT>' <EOL> from django . core . management . base import BaseCommand , CommandError <EOL> from pybb . models import Topic , Forum <EOL> class Command ( BaseCommand ) : <EOL> help = '<STR_LIT>' <EOL> def handle ( self , * args , ** options ) : <EOL> for topic in Topic . objects . all ( ) : <EOL> topic . update_counters ( ) <EOL> self . stdout . write ( '<STR_LIT>' % topic ) <EOL> for forum in Forum . objects . all ( ) : <EOL> forum . update_counters ( ) <EOL> self . stdout . write ( '<STR_LIT>' % forum ) </s>
