fixing safari
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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')
|
||||
|
||||
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
BIN
rowers/tests/testdata/testdata.tcx.gz
vendored
Binary file not shown.
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user