add __str__ method for coinifyapiinvoice model
This commit is contained in:
parent
3ac0740a78
commit
2042313780
|
@ -277,6 +277,10 @@ class CoinifyAPIInvoice(CreatedUpdatedModel):
|
||||||
invoicejson = JSONField()
|
invoicejson = JSONField()
|
||||||
order = models.OneToOneField('shop.Order')
|
order = models.OneToOneField('shop.Order')
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return "coinifyinvoice for order #%s" % self.order.id
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class CoinifyAPICallback(CreatedUpdatedModel):
|
class CoinifyAPICallback(CreatedUpdatedModel):
|
||||||
headers = JSONField()
|
headers = JSONField()
|
||||||
|
|
Loading…
Reference in a new issue