mirror of
https://github.com/netbox-community/netbox.git
synced 2026-03-26 19:31:43 +01:00
Fixes #16689: Load correct configuration
Loads the the current configuration if no ConfigRevisions are saved to the database.
This commit is contained in:
committed by
Jeremy Stretch
parent
2c64a52d7d
commit
a896b14c08
@@ -555,7 +555,7 @@ class SystemView(UserPassesTestMixin, View):
|
||||
config = ConfigRevision.objects.get(pk=cache.get('config_version'))
|
||||
except ConfigRevision.DoesNotExist:
|
||||
# Fall back to using the active config data if no record is found
|
||||
config = ConfigRevision(data=get_config().defaults)
|
||||
config = get_config()
|
||||
|
||||
# Raw data export
|
||||
if 'export' in request.GET:
|
||||
|
||||
Reference in New Issue
Block a user