adding opt in to social media
This commit is contained in:
@@ -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'
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user