Skip to content

Commit

Permalink
PendingUpdateRequest.__str__ for admin
Browse files Browse the repository at this point in the history
  • Loading branch information
enkore committed Sep 27, 2016
1 parent 6f3a315 commit 67d9733
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index_service/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
"""
Expand Down

0 comments on commit 67d9733

Please sign in to comment.