followers
This commit is contained in:
@@ -2809,6 +2809,7 @@ def virtualevent_submit_result_view(request,id=0,workoutid=0):
|
||||
if not jobid:
|
||||
messages.info(request,"Result submitted successfully.")
|
||||
|
||||
|
||||
for otherrecord in otherrecords:
|
||||
try:
|
||||
otheruser = Rower.objects.get(id=otherrecord.userid)
|
||||
@@ -2826,7 +2827,21 @@ def virtualevent_submit_result_view(request,id=0,workoutid=0):
|
||||
except Rower.DoesNotExist:
|
||||
pass
|
||||
|
||||
followers = VirtualRaceFollower.objects.filter(race = race)
|
||||
|
||||
for follower in followers:
|
||||
othername = ''
|
||||
if follower.user:
|
||||
othername = follower.user.first_name+' '+follower.user.last_name
|
||||
|
||||
registeredname = r.user.first_name+' '+r.user.last_name
|
||||
email = follower.emailaddress
|
||||
job = myqueue(
|
||||
queue,
|
||||
handle_sendemail_racesubmission,
|
||||
email, othername,
|
||||
registeredname,race.name,race.id,
|
||||
)
|
||||
|
||||
|
||||
# redirect to race page
|
||||
|
||||
Reference in New Issue
Block a user