Skip to content

Commit

Permalink
fixed form field signup_code to code
Browse files Browse the repository at this point in the history
  • Loading branch information
jtauber committed Apr 21, 2012
1 parent 7a7555f commit bff0af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion waitinglist/models.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class UserCohort(models.Model):


@receiver(user_signed_up) @receiver(user_signed_up)
def handle_user_signup(sender, **kwargs): def handle_user_signup(sender, **kwargs):
signup_code = kwargs["form"].cleaned_data["signup_code"] signup_code = kwargs["form"].cleaned_data["code"]
# fetch the cohort for the signup code # fetch the cohort for the signup code
qs = SignupCodeCohort.objects.select_related("cohort") qs = SignupCodeCohort.objects.select_related("cohort")
cohort = qs.get(signup_code=signup_code).cohort cohort = qs.get(signup_code=signup_code).cohort
Expand Down

0 comments on commit bff0af8

Please sign in to comment.