fix admin registration using abx hooks

This commit is contained in:
Nick Sweeting 2024-10-14 17:38:38 -07:00
parent 30923c340f
commit c0b7887fd7
No known key found for this signature in database
13 changed files with 253 additions and 1006 deletions

View file

@ -2,9 +2,17 @@ __package__ = 'archivebox.machine'
from django.apps import AppConfig
import abx
class MachineConfig(AppConfig):
default_auto_field = 'django.db.models.BigAutoField'
name = 'machine'
verbose_name = 'Machine Info'
@abx.hookimpl
def register_admin(admin_site):
from machine.admin import register_admin
register_admin(admin_site)