1
0
Fork 0
mirror of synced 2024-06-25 17:40:50 +12:00

allow filtering by archiveresult status

This commit is contained in:
Nick Sweeting 2021-04-06 02:07:22 -04:00
parent f67a5a215a
commit c98053a8ca

View file

@ -57,7 +57,7 @@ class SnapshotAdmin(SearchResultsAdminMixin, admin.ModelAdmin):
readonly_fields = ('uuid', 'num_outputs', 'is_archived', 'url_hash', 'added', 'updated')
search_fields = ('id', 'url', 'timestamp', 'title', 'tags__name')
fields = ('timestamp', 'url', 'title', 'tags', *readonly_fields)
list_filter = ('added', 'updated', 'tags')
list_filter = ('added', 'updated', 'tags', 'archiveresult__status')
ordering = ['-added']
actions = ['delete_snapshots', 'overwrite_snapshots', 'update_snapshots', 'update_titles', 'verify_snapshots', 'add_tag', 'remove_tag']
autocomplete_fields = ['tags']