Fixes #17969: Fix system info export when a config revision exists

This commit is contained in:
Jeremy Stretch
2024-11-12 12:11:44 -05:00
parent 2ed0534117
commit c34fea6c9b
2 changed files with 30 additions and 5 deletions

View File

@@ -626,11 +626,7 @@ class SystemView(UserPassesTestMixin, View):
}
# Configuration
try:
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 = get_config()
config = get_config()
# Raw data export
if 'export' in request.GET: