Skip to content

Commit

Permalink
fix: add str for entity
Browse files Browse the repository at this point in the history
  • Loading branch information
ali-zahedi committed Apr 7, 2024
1 parent 52e06f5 commit cc84c79
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions django_telethon/models/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,3 +43,6 @@ class Entity(models.Model):
class Meta:
verbose_name = _('Entity')
verbose_name_plural = _('Entities')

def __str__(self):
return f'{self.entity_id} - {self.username} - {self.name}'

0 comments on commit cc84c79

Please sign in to comment.