fix ordering and __str__ methods for epaycallback model
This commit is contained in:
parent
528aa2bccf
commit
8eb943c877
|
@ -173,10 +173,14 @@ class EpayCallback(CreatedUpdatedModel, UUIDModel):
|
||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = 'Epay Callback'
|
verbose_name = 'Epay Callback'
|
||||||
verbose_name_plural = 'Epay Callbacks'
|
verbose_name_plural = 'Epay Callbacks'
|
||||||
|
ordering = ['-created']
|
||||||
|
|
||||||
payload = JSONField()
|
payload = JSONField()
|
||||||
md5valid = models.BooleanField(default=False)
|
md5valid = models.BooleanField(default=False)
|
||||||
|
|
||||||
|
def __str__(self):
|
||||||
|
return 'callback at %s (%smd5 valid)' % (self.created, 'not ' if not self.md5valid)
|
||||||
|
|
||||||
|
|
||||||
class EpayPayment(CreatedUpdatedModel, UUIDModel):
|
class EpayPayment(CreatedUpdatedModel, UUIDModel):
|
||||||
class Meta:
|
class Meta:
|
||||||
|
|
Loading…
Reference in a new issue