mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-12 22:25:44 -04:00
fix admin registration using abx hooks
This commit is contained in:
parent
30923c340f
commit
c0b7887fd7
13 changed files with 253 additions and 1006 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue