mirror of
https://github.com/pirate/ArchiveBox.git
synced 2025-08-13 01:54:10 +02:00
add register_admin to abx hookspec
This commit is contained in:
@@ -110,6 +110,11 @@ def register_checks():
|
||||
"""Register django checks with django system checks system"""
|
||||
pass
|
||||
|
||||
@hookspec
|
||||
def register_admin(admin_site):
|
||||
"""Register django admin views/models with the main django admin site instance"""
|
||||
pass
|
||||
|
||||
|
||||
###########################################################################################
|
||||
|
||||
|
@@ -96,3 +96,6 @@ def register_checks():
|
||||
"""register any django system checks"""
|
||||
pm.hook.register_checks()
|
||||
|
||||
def register_admin(admin_site):
|
||||
"""register any django admin models/views with the main django admin site instance"""
|
||||
pm.hook.register_admin(admin_site=admin_site)
|
||||
|
Reference in New Issue
Block a user