avoid tags in str
This commit is contained in:
parent
b6f3e01721
commit
7c1a9f6844
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue