Fix inconsistent tag order in bookmarks (#819)

This commit is contained in:
Sascha Ißbrücker
2024-09-10 21:06:57 +02:00
committed by GitHub
parent b30486317d
commit cb0301fd9e
2 changed files with 18 additions and 1 deletions

View File

@@ -84,7 +84,8 @@ class Bookmark(models.Model):
@property
def tag_names(self):
return [tag.name for tag in self.tags.all()]
names = [tag.name for tag in self.tags.all()]
return sorted(names)
def __str__(self):
return self.resolved_title + " (" + self.url[:30] + "...)"