fix tags page rendering when snapshot has no updated timestamp
This commit is contained in:
parent
0036e9cce2
commit
76ff789164
1 changed files with 1 additions and 1 deletions
|
@ -258,7 +258,7 @@ class TagAdmin(admin.ModelAdmin):
|
||||||
return mark_safe('<br/>'.join(
|
return mark_safe('<br/>'.join(
|
||||||
format_html(
|
format_html(
|
||||||
'{} <code><a href="/admin/core/snapshot/{}/change"><b>[{}]</b></a> {}</code>',
|
'{} <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.id,
|
||||||
snap.timestamp,
|
snap.timestamp,
|
||||||
snap.url,
|
snap.url,
|
||||||
|
|
Loading…
Reference in a new issue