Commits

sirex  committed de5208e

Defined str representation for Money object, that differs from repr.

  • Participants
  • Parent commits cf810fc

Comments (0)

Files changed (1)

File money/Money.py

     def __repr__(self):
         return "'%s'" % self.code
 
+    def __str__(self):
+        return self.code
+
     def get_factor(self, currency=None, source=None):
         if source is None:
             source = get_default_exrates_source()