#NEWLINE# def recalculate_counter_quotas( self ) : #NEWLINE# #INDENT# self . stdout . write ( 'Recalculating counter quotas' ) #NEWLINE# for model in get_models_with_quotas ( ) : #NEWLINE# #INDENT# for counter_field in model . get_quotas_fields ( field_class = fields . CounterQuotaField ) : #NEWLINE# #INDENT# for instance in model . objects . all ( ) : #NEWLINE# #INDENT# counter_field . recalculate ( scope = instance ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# self . stdout . write ( '...done' )