mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-14 07:04:27 -04:00
add register_admin to abx hookspec
This commit is contained in:
parent
4634cd6c8e
commit
a7c19a5da0
2 changed files with 8 additions and 0 deletions
|
@ -110,6 +110,11 @@ def register_checks():
|
||||||
"""Register django checks with django system checks system"""
|
"""Register django checks with django system checks system"""
|
||||||
pass
|
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"""
|
"""register any django system checks"""
|
||||||
pm.hook.register_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)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue