mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-29 03:46:25 -06:00
Suppress adding the RSS feed widget to the dashboard if ISOLATED_DEPLOYMENT is set
This commit is contained in:
parent
ce365dab0a
commit
01d9f101dd
@ -61,6 +61,9 @@ def get_default_dashboard(config=None):
|
|||||||
config = config or settings.DEFAULT_DASHBOARD or DEFAULT_DASHBOARD
|
config = config or settings.DEFAULT_DASHBOARD or DEFAULT_DASHBOARD
|
||||||
|
|
||||||
for widget in config:
|
for widget in config:
|
||||||
|
if settings.ISOLATED_DEPLOYMENT and widget['widget'] == 'extras.RSSFeedWidget':
|
||||||
|
continue
|
||||||
|
|
||||||
id = str(uuid.uuid4())
|
id = str(uuid.uuid4())
|
||||||
dashboard.layout.append({
|
dashboard.layout.append({
|
||||||
'id': id,
|
'id': id,
|
||||||
|
Loading…
Reference in New Issue
Block a user