Private
Public Access
1
0

fixing safari

This commit is contained in:
2025-08-13 19:59:44 +02:00
parent 99328dc4a7
commit 7e37f192af
4 changed files with 9 additions and 2 deletions

View File

@@ -344,6 +344,8 @@ class IntervalsIntegration(SyncIntegration):
for w in ws:
try:
w.name = data['name']
if length(w.name) >= 350:
w.name = w.name[:350]
except KeyError:
pass
try:
@@ -370,7 +372,7 @@ class IntervalsIntegration(SyncIntegration):
w.is_commute = False
except KeyError:
w.is_commute = False
w.save()
try:

View File

@@ -3775,7 +3775,7 @@ class Workout(models.Model):
team = models.ManyToManyField(Team, blank=True)
plannedsession = models.ForeignKey(PlannedSession, blank=True, null=True,
verbose_name='Session', on_delete=models.SET_NULL)
name = models.CharField(max_length=150, blank=True, null=True)
name = models.CharField(max_length=350, blank=True, null=True)
date = models.DateField(blank=True, null=True)
workouttype = models.CharField(choices=workouttypes, max_length=50,
verbose_name='Exercise/Boat Class')

Binary file not shown.

View File

@@ -101,6 +101,11 @@ AUTHENTICATION_BACKENDS = (
CSRF_TRUSTED_ORIGINS = ['https://rowsandall.com', 'https://www.rowsandall.com', 'http://localhost', 'https://dunav.ngrok.io']
CSRF_COOKIE_SAMESITE = 'None'
CSRF_COOKIE_SECURE = True
SESSION_COOKIE_SAMESITE = 'None'
SESSION_COOKIE_SECURE = True
MIDDLEWARE = [
'django.middleware.common.CommonMiddleware',
'django.middleware.common.BrokenLinkEmailsMiddleware',