#NEWLINE# def subscribe( self , donor , resubscribe = False ) : #NEWLINE# #INDENT# ( sub , created ) = Subscription . get_or_create ( donor = donor , pub_id = self . id ) #NEWLINE# sub . user = donor . user #NEWLINE# if ( created or resubscribe ) : #NEWLINE# #INDENT# sub . subscribed = True #NEWLINE# #UNINDENT# sub . save ( ) #NEWLINE# return ( sub , created )