mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
Fixed empty tags
This commit is contained in:
parent
bf09c6b40a
commit
4581ea956f
2 changed files with 4 additions and 5 deletions
|
@ -70,7 +70,7 @@ class SnapshotAdmin(admin.ModelAdmin):
|
|||
return super().get_queryset(request).prefetch_related('tags')
|
||||
|
||||
def tag_list(self, obj):
|
||||
return u", ".join(o.name for o in obj.tags.all())
|
||||
return ', '.join(obj.tags.values_list('name', flat=True))
|
||||
|
||||
def id_str(self, obj):
|
||||
return format_html(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue