2020-07-28 03:26:45 +00:00
|
|
|
__package__ = 'archivebox.core'
|
|
|
|
|
2024-10-15 00:38:38 +00:00
|
|
|
from django.contrib.auth import get_user_model
|
2024-08-20 12:56:19 +00:00
|
|
|
|
2021-01-20 23:44:28 +00:00
|
|
|
|
2024-09-05 11:39:46 +00:00
|
|
|
from core.models import Snapshot, ArchiveResult, Tag
|
2024-10-15 00:38:38 +00:00
|
|
|
from core.admin_tags import TagAdmin
|
|
|
|
from core.admin_snapshots import SnapshotAdmin
|
|
|
|
from core.admin_archiveresults import ArchiveResultAdmin
|
|
|
|
from core.admin_users import UserAdmin
|
2024-10-03 10:10:22 +00:00
|
|
|
|
2024-10-15 00:38:38 +00:00
|
|
|
import abx
|
2024-10-03 10:10:22 +00:00
|
|
|
|
|
|
|
|
2024-10-15 00:38:38 +00:00
|
|
|
@abx.hookimpl
|
|
|
|
def register_admin(admin_site):
|
|
|
|
admin_site.register(get_user_model(), UserAdmin)
|
|
|
|
admin_site.register(ArchiveResult, ArchiveResultAdmin)
|
|
|
|
admin_site.register(Snapshot, SnapshotAdmin)
|
|
|
|
admin_site.register(Tag, TagAdmin)
|