Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed some bugs

  • Loading branch information...
commit 513facb567f92ff508cd5d30f651b70346508c35 1 parent a342bf7
Patrick Altman paltman authored
4 waitinglist/forms.py
View
@@ -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"]
4 waitinglist/models.py
View
@@ -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)
2  waitinglist/stats.py
View
@@ -1,3 +1,5 @@
+import datetime
+
from django.utils import timezone
from django.contrib.auth.models import User
Please sign in to comment.
Something went wrong with that request. Please try again.