Permalink
Browse files

Fixed some bugs

  • Loading branch information...
1 parent a342bf7 commit 513facb567f92ff508cd5d30f651b70346508c35 @paltman paltman committed Apr 18, 2012
Showing with 7 additions and 3 deletions.
  1. +2 −2 waitinglist/forms.py
  2. +3 −1 waitinglist/models.py
  3. +2 −0 waitinglist/stats.py
@@ -1,7 +1,7 @@
from django import forms
from waitinglist.models import WaitingListEntry
-from waitinglist.models import Cohort, SignupCodeCohort, UserCohort
+from waitinglist.models import Cohort
class WaitingListEntryForm(forms.ModelForm):
@@ -28,4 +28,4 @@ class CohortCreate(forms.ModelForm):
class Meta:
model = Cohort
- exclude = ["created"]
+ exclude = ["created"]
@@ -1,3 +1,5 @@
+import collections
+
from django.db import models
from django.dispatch import receiver
from django.utils import timezone
@@ -83,4 +85,4 @@ def handle_user_signup(sender, **kwargs):
qs = SignupCodeCohort.objects.select_related("cohort")
cohort = qs.get(signup_code=signup_code).cohort
# create a UserCohort for user association to a cohort
- UserCohort.objects.create(user=user, cohort=cohort)
+ UserCohort.objects.create(user=kwargs["user"], cohort=cohort)
@@ -1,3 +1,5 @@
+import datetime
+
from django.utils import timezone
from django.contrib.auth.models import User

0 comments on commit 513facb

Please sign in to comment.