avoid tags in str

This commit is contained in:
j 2025-04-18 21:51:12 +01:00
commit 7c1a9f6844

View file

@ -54,7 +54,7 @@ class Item(models.Model):
raise ValidationError("You can only use mobile urls(/m/)")
def __str__(self):
return '%s (%s)' % (self.title, self.url)
return '%s (%s)' % (ox.strip_tags(self.title), self.url)
def public_comments(self):
return self.comments.exclude(published=None)