add __str__ method for coinifyapiinvoice model

This commit is contained in:
Thomas Steen Rasmussen 2016-05-31 22:22:17 +02:00
parent 3ac0740a78
commit 2042313780

View file

@ -277,6 +277,10 @@ class CoinifyAPIInvoice(CreatedUpdatedModel):
invoicejson = JSONField()
order = models.OneToOneField('shop.Order')
def __str__(self):
return "coinifyinvoice for order #%s" % self.order.id
class CoinifyAPICallback(CreatedUpdatedModel):
headers = JSONField()