Skip to content

Commit

Permalink
add default __str__ method
Browse files Browse the repository at this point in the history
  • Loading branch information
powderflask committed Sep 16, 2023
1 parent 2ac6430 commit d3cb4a0
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions signoffs/core/models/signets.py
Original file line number Diff line number Diff line change
Expand Up @@ -273,3 +273,6 @@ class AbstractRevokedSignet(models.Model):

class Meta:
abstract = True

def __str__(self):
return f"Revoked {getattr(self.signet, 'signoff_id', '')} by {self.user} at {self.timestamp}"

0 comments on commit d3cb4a0

Please sign in to comment.