|
|
@@ -58,9 +58,9 @@ delete_snapshots.short_description = "Delete"
|
|
|
class SnapshotAdmin(admin.ModelAdmin):
|
|
|
list_display = ('added', 'title_str', 'url_str', 'files', 'size')
|
|
|
sort_fields = ('title_str', 'url_str', 'added')
|
|
|
- readonly_fields = ('id', 'url', 'timestamp', 'num_outputs', 'is_archived', 'url_hash', 'added', 'updated')
|
|
|
+ readonly_fields = ('id', 'url', 'timestamp', 'title', 'tags', 'num_outputs', 'is_archived', 'url_hash', 'added', 'updated')
|
|
|
search_fields = ('url', 'timestamp', 'title', 'tags')
|
|
|
- fields = ('title', 'tags', *readonly_fields)
|
|
|
+ fields = (*readonly_fields,)
|
|
|
list_filter = ('added', 'updated', 'tags')
|
|
|
ordering = ['-added']
|
|
|
actions = [delete_snapshots, overwrite_snapshots, update_snapshots, update_titles, verify_snapshots]
|