Skip to content

Commit 79dcb4b

Browse files
committed
Email dreams and skillz
1 parent 7fa1d9d commit 79dcb4b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

api/views.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,15 @@ def iap_signup(request):
7070
form.is_valid()
7171
user = form.save(request)
7272

73+
dream_and_skill = '[No Dream or Skill]'
74+
75+
if 'dream' in data:
76+
if 'skill' in data:
77+
dream_and_skill = data['dream'] + ' ' + data['skill']
78+
7379
send_mail(
7480
'New Member from the App!',
75-
str(data['email']) + ' ' + str(res_json),
81+
str(data['email']) + ' ' + dream_and_skill + ' ' + str(res_json),
7682
7783
7884
fail_silently=False,

0 commit comments

Comments
 (0)