Closes #15908: Establish canonical & local sources for release info (#16420)

* Closes #15908: Establish canonical & local sources for release info

* Update references to settings.VERSION
This commit is contained in:
Jeremy Stretch
2024-06-07 13:41:48 -04:00
committed by GitHub
parent 060aef7e72
commit c60e7254c8
15 changed files with 93 additions and 30 deletions

View File

@@ -53,7 +53,7 @@ def handle_rest_api_exception(request, *args, **kwargs):
data = {
'error': str(error),
'exception': type_.__name__,
'netbox_version': settings.VERSION,
'netbox_version': settings.RELEASE.full_version,
'python_version': platform.python_version(),
}
return JsonResponse(data, status=status.HTTP_500_INTERNAL_SERVER_ERROR)