1
0
Fork 0
mirror of synced 2024-06-02 18:44:59 +12:00

fix clicking on tags on snapshot list

This commit is contained in:
Nick Sweeting 2021-04-01 03:31:05 -04:00
parent 0e39a2098d
commit c438e49871

View file

@ -113,7 +113,7 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin):
def title_str(self, obj):
canon = obj.as_link().canonical_outputs()
tags = ''.join(
format_html('<a href="/admin/core/snapshot/?id__startswith={}"><span class="tag">{}</span></a> ', tag.id, tag)
format_html('<a href="/admin/core/snapshot/?tags__id__exact={}"><span class="tag">{}</span></a> ', tag.id, tag)
for tag in obj.tags.all()
if str(tag).strip()
)