diff options
author | ankitjavalkar | 2017-01-23 15:37:03 +0530 |
---|---|---|
committer | ankitjavalkar | 2017-01-23 15:37:03 +0530 |
commit | 8009453578839f811b4d353dd61ff8d4ce5b68c4 (patch) | |
tree | cdeb07c773b9a6004e7a1314f5f97ef798a874c5 /yaksh/models.py | |
parent | e75d5e67bc129c0d55ce94496ef4636c80dba0eb (diff) | |
download | online_test-8009453578839f811b4d353dd61ff8d4ce5b68c4.tar.gz online_test-8009453578839f811b4d353dd61ff8d4ce5b68c4.tar.bz2 online_test-8009453578839f811b4d353dd61ff8d4ce5b68c4.zip |
Add course instructions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 8d4f930..805bf25 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -146,6 +146,7 @@ class Course(models.Model): created_on = models.DateTimeField(auto_now_add=True) teachers = models.ManyToManyField(User, related_name='teachers') is_trial = models.BooleanField(default=False) + instructions = models.TextField(null=True, blank=True) objects = CourseManager() def request(self, *users): @@ -232,9 +233,8 @@ class Course(models.Model): ############################################################################### class ConcurrentUser(models.Model): - concurrent_user = models.OneToOneField(User, null=False) - session_key = models.CharField(null=False, max_length=40) - + concurrent_user = models.OneToOneField(User) + session_key = models.CharField(max_length=40) ############################################################################### class Profile(models.Model): |