mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-21 03:27:21 -06:00
Merge pull request #2408 from ScanPlusGmbH/fix-2395
Fix #2515: Modify only when webhooks are enabled
This commit is contained in:
commit
219c9e7d95
@ -23,8 +23,9 @@ admin_site.register(User, UserAdmin)
|
|||||||
admin_site.register(Tag, TagAdmin)
|
admin_site.register(Tag, TagAdmin)
|
||||||
|
|
||||||
# Modify the template to include an RQ link if django_rq is installed (see RQ_SHOW_ADMIN_LINK)
|
# Modify the template to include an RQ link if django_rq is installed (see RQ_SHOW_ADMIN_LINK)
|
||||||
try:
|
if settings.WEBHOOKS_ENABLED:
|
||||||
|
try:
|
||||||
import django_rq
|
import django_rq
|
||||||
admin_site.index_template = 'django_rq/index.html'
|
admin_site.index_template = 'django_rq/index.html'
|
||||||
except ImportError:
|
except ImportError:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user