1
0
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:
Nick Sweeting
2024-10-14 15:35:44 -07:00
parent 4634cd6c8e
commit a7c19a5da0
2 changed files with 8 additions and 0 deletions

View File

@@ -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
###########################################################################################

View File

@@ -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)