Skip to content

Commit

Permalink
fixed receiver bits in models.py
Browse files Browse the repository at this point in the history
  • Loading branch information
brosner committed Apr 14, 2012
1 parent 8f544e6 commit 2d5a1f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion waitinglist/models.py
@@ -1,4 +1,5 @@
from django.db import models from django.db import models
from django.dispatch import receiver
from django.utils import timezone from django.utils import timezone
from django.utils.translation import ugettext_lazy as _ from django.utils.translation import ugettext_lazy as _


Expand Down Expand Up @@ -75,7 +76,7 @@ class UserCohort(models.Model):
cohort = models.ForeignKey(Cohort) cohort = models.ForeignKey(Cohort)




@reciever(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["signup_code"]
# fetch the cohort for the signup code # fetch the cohort for the signup code
Expand Down

0 comments on commit 2d5a1f4

Please sign in to comment.