mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 22:54:27 -04:00
remove tags field from Machine admin
This commit is contained in:
parent
df79b8e038
commit
aaf069fab0
2 changed files with 3 additions and 1 deletions
|
@ -9,6 +9,7 @@ class CoreConfig(AppConfig):
|
||||||
name = 'core'
|
name = 'core'
|
||||||
|
|
||||||
def ready(self):
|
def ready(self):
|
||||||
|
"""Register the archivebox.core.admin_site as the main django admin site"""
|
||||||
from core.admin_site import register_admin_site
|
from core.admin_site import register_admin_site
|
||||||
register_admin_site()
|
register_admin_site()
|
||||||
|
|
||||||
|
@ -17,5 +18,6 @@ class CoreConfig(AppConfig):
|
||||||
|
|
||||||
@abx.hookimpl
|
@abx.hookimpl
|
||||||
def register_admin(admin_site):
|
def register_admin(admin_site):
|
||||||
|
"""Register the core.models views (Snapshot, ArchiveResult, Tag, etc.) with the admin site"""
|
||||||
from core.admin import register_admin
|
from core.admin import register_admin
|
||||||
register_admin(admin_site)
|
register_admin(admin_site)
|
||||||
|
|
|
@ -17,7 +17,7 @@ class MachineAdmin(ABIDModelAdmin):
|
||||||
# search_fields = ('id', 'abid', 'guid', 'hostname', 'hw_manufacturer', 'hw_product', 'hw_uuid', 'os_arch', 'os_family', 'os_platform', 'os_kernel', 'os_release')
|
# search_fields = ('id', 'abid', 'guid', 'hostname', 'hw_manufacturer', 'hw_product', 'hw_uuid', 'os_arch', 'os_family', 'os_platform', 'os_kernel', 'os_release')
|
||||||
|
|
||||||
readonly_fields = ('guid', 'created_at', 'modified_at', 'abid_info', 'ips')
|
readonly_fields = ('guid', 'created_at', 'modified_at', 'abid_info', 'ips')
|
||||||
fields = (*readonly_fields, 'hostname', 'hw_in_docker', 'hw_in_vm', 'hw_manufacturer', 'hw_product', 'hw_uuid', 'os_arch', 'os_family', 'os_platform', 'os_kernel', 'os_release', 'stats', 'num_uses_succeeded', 'num_uses_failed', 'tags')
|
fields = (*readonly_fields, 'hostname', 'hw_in_docker', 'hw_in_vm', 'hw_manufacturer', 'hw_product', 'hw_uuid', 'os_arch', 'os_family', 'os_platform', 'os_kernel', 'os_release', 'stats', 'num_uses_succeeded', 'num_uses_failed')
|
||||||
|
|
||||||
list_filter = ('hw_in_docker', 'hw_in_vm', 'os_arch', 'os_family', 'os_platform')
|
list_filter = ('hw_in_docker', 'hw_in_vm', 'os_arch', 'os_family', 'os_platform')
|
||||||
ordering = ['-created_at']
|
ordering = ['-created_at']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue