Browse Source

fix tags page rendering when snapshot has no updated timestamp

Nick Sweeting 4 years ago
parent
commit
76ff789164
1 changed files with 1 additions and 1 deletions
  1. 1 1
      archivebox/core/admin.py

+ 1 - 1
archivebox/core/admin.py

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