예제 #1
0
파일: models.py 프로젝트: ysobolev/sputnik
 def reference_price_fmt(self):
     if self.reference_price is not None:
         return util.price_fmt(self.contract, self.reference_price)
     else:
         return None
예제 #2
0
파일: models.py 프로젝트: ysobolev/sputnik
 def price_fmt(self):
     return util.price_fmt(self.contract, self.price)