<s> from django . contrib . auth import get_user_model <EOL> from django . core . management . base import BaseCommand <EOL> from pinax . invitations . models import InvitationStat <EOL> class Command ( BaseCommand ) : <EOL> help = "<STR_LIT>" <EOL> def handle ( self , * args , ** options ) : <EOL> for user in get_user_model ( ) . objects . all ( ) : <EOL> stat , _ = InvitationStat . objects . get_or_create ( user = user ) <EOL> stat . invites_allocated = - <NUM_LIT:1> <EOL> stat . save ( ) </s>
