diff --git a/index_service/models.py b/index_service/models.py index b021a1e..57b713f 100644 --- a/index_service/models.py +++ b/index_service/models.py @@ -107,6 +107,10 @@ def is_expired(self): return True return False + def __str__(self): + return '{}: {}'.format(self.created.replace(microsecond=0).isoformat(' '), + ', '.join(pv.id for pv in self.pendingverification_set.all())) + class PendingVerification(ExportModelOperationsMixin('PendingVerification'), models.Model): """