From: Evan Broder Date: Sat, 19 Jul 2008 18:45:50 +0000 (+0000) Subject: Changing location of minus sign in Currency broke __str_no_dollar__ X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=36b449746d1be67a7cbcbd4d4d90b342fa1770cd;p=bluechips.git Changing location of minus sign in Currency broke __str_no_dollar__ --- diff --git a/bluechips/model/types.py b/bluechips/model/types.py index ee53260..ac7a14b 100644 --- a/bluechips/model/types.py +++ b/bluechips/model/types.py @@ -73,7 +73,7 @@ class Currency(object): """ Get to the formatted string without the dollar sign """ - return str(self)[1:] + return str(self).replace('$', '') def __repr__(self): return '%s("%s")' % (self.__class__.__name__, str(self))