#NEWLINE# def get_balance( self ) : #NEWLINE# #INDENT# 'Returns balance' #NEWLINE# bal = self . balance #NEWLINE# transactions = Transaction . objects . filter ( account = self . id ) #NEWLINE# for transaction in transactions : #NEWLINE# #INDENT# bal += transaction . get_relative_value ( ) #NEWLINE# #UNINDENT# return bal