mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 15:14:31 -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,10 +2,14 @@ __package__ = 'archivebox.api'
|
|||
|
||||
from django.apps import AppConfig
|
||||
|
||||
import abx
|
||||
|
||||
|
||||
class APIConfig(AppConfig):
|
||||
name = 'api'
|
||||
|
||||
def ready(self):
|
||||
pass
|
||||
|
||||
@abx.hookimpl
|
||||
def register_admin(admin_site):
|
||||
from api.admin import register_admin
|
||||
register_admin(admin_site)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue