Commit 73b906ef by Calen Pennington

Allow for a user to enroll in multiple courses

parent 9220d138
...@@ -82,7 +82,7 @@ class PendingEmailChange(models.Model): ...@@ -82,7 +82,7 @@ class PendingEmailChange(models.Model):
activation_key = models.CharField(('activation key'), max_length=32, unique=True, db_index=True) activation_key = models.CharField(('activation key'), max_length=32, unique=True, db_index=True)
class CourseEnrollment(models.Model): class CourseEnrollment(models.Model):
user = models.OneToOneField(User, db_index=True) user = models.ForeignKey(User, db_index=True)
course_id = models.CharField(max_length=255) course_id = models.CharField(max_length=255)
#cache_relation(User.profile) #cache_relation(User.profile)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment