diff --git a/CHANGES.txt b/CHANGES.txt index 70a0f27..65c6d54 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +0.4.1 +==================== +* Updated sentry JS config to use username instead of id. + 0.4.0 (2024-10-10) ==================== * Added a custom context processor to make settings available in diff --git a/ctlsettings/templates/ctlsettings/sentry_js.html b/ctlsettings/templates/ctlsettings/sentry_js.html index b625739..c92e469 100644 --- a/ctlsettings/templates/ctlsettings/sentry_js.html +++ b/ctlsettings/templates/ctlsettings/sentry_js.html @@ -9,12 +9,12 @@ {% if request.user.is_anonymous %} Sentry.setUser({ email: 'none', - id: 'anonymous' + username: 'anonymous' }); {% else %} Sentry.setUser({ email: '{{ request.user.email }}', - id: '{{ request.user.username }}' + username: '{{ request.user.username }}' }); {% endif %} };