mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
dont allow ui editing of db fields for now
This commit is contained in:
parent
c9b3bab84d
commit
6087e30d38
1 changed files with 2 additions and 2 deletions
|
@ -58,9 +58,9 @@ delete_snapshots.short_description = "Delete"
|
||||||
class SnapshotAdmin(admin.ModelAdmin):
|
class SnapshotAdmin(admin.ModelAdmin):
|
||||||
list_display = ('added', 'title_str', 'url_str', 'files', 'size')
|
list_display = ('added', 'title_str', 'url_str', 'files', 'size')
|
||||||
sort_fields = ('title_str', 'url_str', 'added')
|
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')
|
search_fields = ('url', 'timestamp', 'title', 'tags')
|
||||||
fields = ('title', 'tags', *readonly_fields)
|
fields = (*readonly_fields,)
|
||||||
list_filter = ('added', 'updated', 'tags')
|
list_filter = ('added', 'updated', 'tags')
|
||||||
ordering = ['-added']
|
ordering = ['-added']
|
||||||
actions = [delete_snapshots, overwrite_snapshots, update_snapshots, update_titles, verify_snapshots]
|
actions = [delete_snapshots, overwrite_snapshots, update_snapshots, update_titles, verify_snapshots]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue