Private
Public Access
1
0

adding opt in to social media

This commit is contained in:
Sander Roosendaal
2020-06-04 21:27:25 +02:00
parent a21da7472e
commit 14e4b089fa
6 changed files with 107 additions and 6 deletions

View File

@@ -2973,6 +2973,9 @@ class VirtualRaceResult(models.Model):
entrycategory = models.ForeignKey(CourseStandard,null=True,on_delete=models.SET_NULL,
verbose_name='Group')
acceptsocialmedia = models.BooleanField(default=True,
verbose_name = 'I agree with sharing my name in challenge related social media posts (unchecking this does not prevent you from participation)')
def __str__(self):
rr = Rower.objects.get(id=self.userid)
name = '{u1} {u2}'.format(
@@ -3048,6 +3051,8 @@ class IndoorVirtualRaceResult(models.Model):
verbose_name = 'Receive challenge notifications by email')
entrycategory = models.ForeignKey(CourseStandard,null=True,on_delete=models.SET_NULL,
verbose_name='Group')
acceptsocialmedia = models.BooleanField(default=True,
verbose_name = 'I agree with sharing my name in challenge related social media posts (unchecking this does not prevent you from participation)')
def __str__(self):
rr = Rower.objects.get(id=self.userid)
@@ -3097,7 +3102,7 @@ class IndoorVirtualRaceResultForm(ModelForm):
class Meta:
model = IndoorVirtualRaceResult
fields = ['teamname','weightcategory','boatclass','age','adaptiveclass',
'entrycategory'
'entrycategory','acceptsocialmedia'
]
@@ -3115,7 +3120,7 @@ class VirtualRaceResultForm(ModelForm):
model = VirtualRaceResult
fields = ['teamname','weightcategory','boatclass','boattype',
'age','adaptiveclass',
'entrycategory'
'entrycategory','acceptsocialmedia'
]