Skip to content

Commit

Permalink
Add a redundant link to capture job from link admin (to supplement in…
Browse files Browse the repository at this point in the history
…line).
  • Loading branch information
rebeccacremona committed Oct 30, 2023
1 parent 313a2ac commit 88663db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions perma_web/perma/admin.py
Original file line number Diff line number Diff line change
Expand Up @@ -587,13 +587,13 @@ class LinkAdmin(SimpleHistoryAdmin):
list_display = ['guid', 'submitted_url', 'created_by', 'creation_timestamp', 'tag_list', 'is_private', 'user_deleted', 'cached_can_play_back', 'captured_by_software', 'internet_archive_upload_status', 'file_size']
list_filter = [GUIDFilter, CreatedByFilter, SubmittedURLFilter, TagFilter, 'cached_can_play_back', 'captured_by_software', 'internet_archive_upload_status']
fieldsets = (
(None, {'fields': ('guid', 'submitted_url', 'submitted_url_surt','submitted_title', 'submitted_description', 'created_by', 'creation_timestamp', 'captured_by_software', 'captured_by_browser', 'file_size', 'replacement_link', 'tags')}),
(None, {'fields': ('guid', 'capture_job', 'submitted_url', 'submitted_url_surt','submitted_title', 'submitted_description', 'created_by', 'creation_timestamp', 'captured_by_software', 'captured_by_browser', 'file_size', 'replacement_link', 'tags')}),
('Visibility', {'fields': ('is_private', 'private_reason', 'is_unlisted',)}),
('User Delete', {'fields': ('user_deleted', 'user_deleted_timestamp',)}),
('Organization', {'fields': ('folders', 'notes')}),
('Mirroring', {'fields': ('archive_timestamp', 'internet_archive_upload_status', 'cached_can_play_back')}),
)
readonly_fields = ['guid', 'folders', 'creation_timestamp', 'file_size', 'captured_by_software', 'captured_by_browser', 'archive_timestamp']
readonly_fields = ['guid', 'capture_job', 'folders', 'creation_timestamp', 'file_size', 'captured_by_software', 'captured_by_browser', 'archive_timestamp']
inlines = [
new_class("CaptureInline", admin.TabularInline, model=Capture,
fields=['role', 'status', 'url', 'content_type', 'record_type', 'user_upload'],
Expand Down

0 comments on commit 88663db

Please sign in to comment.