Fixed empty tags

This commit is contained in:
Angel Rey 2020-09-24 15:11:17 -05:00
parent bf09c6b40a
commit 4581ea956f
2 changed files with 4 additions and 5 deletions

View file

@ -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(