1
0
Fork 0
mirror of synced 2024-06-26 10:00:19 +12:00

fix tags page rendering when snapshot has no updated timestamp

This commit is contained in:
Nick Sweeting 2021-03-01 00:40:41 -05:00
parent 0036e9cce2
commit 76ff789164

View file

@ -258,7 +258,7 @@ class TagAdmin(admin.ModelAdmin):
return mark_safe('<br/>'.join(
format_html(
'{} <code><a href="/admin/core/snapshot/{}/change"><b>[{}]</b></a> {}</code>',
snap.updated.strftime('%Y-%m-%d %H:%M'),
snap.updated.strftime('%Y-%m-%d %H:%M') if snap.updated else 'pending...',
snap.id,
snap.timestamp,
snap.url,