mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-09 12:21:57 -04:00
comment out Crawl api methods temporarily
This commit is contained in:
parent
536a5ea745
commit
f75ae805f8
11 changed files with 1038 additions and 9 deletions
33
archivebox/api/admin.py
Normal file
33
archivebox/api/admin.py
Normal file
|
@ -0,0 +1,33 @@
|
|||
# __package__ = 'archivebox.api'
|
||||
|
||||
# import abx
|
||||
|
||||
# from signal_webhooks.admin import WebhookAdmin
|
||||
# from signal_webhooks.utils import get_webhook_model
|
||||
|
||||
# from abid_utils.admin import ABIDModelAdmin
|
||||
|
||||
# from .models import APIToken
|
||||
|
||||
|
||||
# class APITokenAdmin(ABIDModelAdmin):
|
||||
# list_display = ('created_at', 'abid', 'created_by', 'token_redacted', 'expires')
|
||||
# sort_fields = ('abid', 'created_at', 'created_by', 'expires')
|
||||
# readonly_fields = ('created_at', 'modified_at', 'abid_info')
|
||||
# search_fields = ('id', 'abid', 'created_by__username', 'token')
|
||||
# fields = ('created_by', 'token', 'expires', *readonly_fields)
|
||||
|
||||
# list_filter = ('created_by',)
|
||||
# ordering = ['-created_at']
|
||||
# list_per_page = 100
|
||||
|
||||
# class CustomWebhookAdmin(WebhookAdmin, ABIDModelAdmin):
|
||||
# list_display = ('created_at', 'created_by', 'abid', *WebhookAdmin.list_display)
|
||||
# sort_fields = ('created_at', 'created_by', 'abid', 'referenced_model', 'endpoint', 'last_success', 'last_error')
|
||||
# readonly_fields = ('created_at', 'modified_at', 'abid_info', *WebhookAdmin.readonly_fields)
|
||||
|
||||
|
||||
# @abx.hookimpl
|
||||
# def register_admin(admin_site):
|
||||
# admin_site.register(APIToken, APITokenAdmin)
|
||||
# admin_site.register(get_webhook_model(), CustomWebhookAdmin)
|
Loading…
Add table
Add a link
Reference in a new issue