Remove dashses from displayed DSN

Fixes #7

I could not find any documentation on what the "standard" is, but I know that
we'll pick it up just fine either way (because Django's UUID field does the
magic for us).

Given that it's impossible to setup your JS client with the dashes, they should
simply be removed.
This commit is contained in:
Klaas van Schelven
2024-10-14 20:15:45 +02:00
parent 2506e9e65f
commit 98e666e3ff

View File

@@ -76,7 +76,7 @@ class Project(models.Model):
@property
def dsn(self):
return build_dsn(get_settings().BASE_URL, self.id, self.sentry_key)
return build_dsn(get_settings().BASE_URL, self.id, self.sentry_key.hex)
def get_latest_release(self):
from releases.models import ordered_releases