Skip to content

Commit a896b14

Browse files
tobiasgejeremystretch
authored andcommitted
Fixes netbox-community#16689: Load correct configuration
Loads the the current configuration if no ConfigRevisions are saved to the database.
1 parent 2c64a52 commit a896b14

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

netbox/core/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -555,7 +555,7 @@ def get(self, request):
555555
config = ConfigRevision.objects.get(pk=cache.get('config_version'))
556556
except ConfigRevision.DoesNotExist:
557557
# Fall back to using the active config data if no record is found
558-
config = ConfigRevision(data=get_config().defaults)
558+
config = get_config()
559559

560560
# Raw data export
561561
if 'export' in request.GET:

netbox/templates/core/system.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ <h5 class="card-header">{% trans "Plugins" %}</h5>
8888
<div class="col col-md-12">
8989
<div class="card">
9090
<h5 class="card-header">{% trans "Current Configuration" %}</h5>
91-
{% include 'core/inc/config_data.html' with config=config.data %}
91+
{% include 'core/inc/config_data.html' %}
9292
</div>
9393

9494
</div>

0 commit comments

Comments
 (0)