ArchiveBox/archivebox/core/admin.py

21 lines
575 B
Python
Raw Normal View History

__package__ = 'archivebox.core'
2024-10-15 00:38:38 +00:00
from django.contrib.auth import get_user_model
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-15 00:38:38 +00:00
import abx
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)