Add __str__ methods to more models

This commit is contained in:
Raphael Michel
2019-02-14 18:47:43 +01:00
parent 2d2d62045a
commit 70fcba96a5
2 changed files with 9 additions and 0 deletions

View File

@@ -1037,6 +1037,9 @@ class OrderPayment(models.Model):
class Meta:
ordering = ('local_id',)
def __str__(self):
return self.full_id
@property
def info_data(self):
"""
@@ -1343,6 +1346,9 @@ class OrderRefund(models.Model):
class Meta:
ordering = ('local_id',)
def __str__(self):
return self.full_id
@property
def info_data(self):
"""