mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fix #2395: Modify only when webhooks are enabled
This only adds the RQ link when the webhooks setting is enabled.
This commit is contained in:
@ -23,6 +23,7 @@ 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)
|
||||||
|
if settings.WEBHOOKS_ENABLED:
|
||||||
try:
|
try:
|
||||||
import django_rq
|
import django_rq
|
||||||
admin_site.index_template = 'django_rq/index.html'
|
admin_site.index_template = 'django_rq/index.html'
|
||||||
|
Reference in New Issue
Block a user