summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-25 00:51:08 +0530
committerGitHub2017-01-25 00:51:08 +0530
commit6db62cad24e0b7cd9c1a5f354566cc0e9186d1cd (patch)
treef74cf8399e7f5021ff16a5eafc7bcd2c3c5f1c59 /yaksh/models.py
parentbfc97a55dddb4e1c3b6c49cc0a0f963e9b8a744c (diff)
parent2670ef89672777bcfda9e8e97e8a976d53dd1a1f (diff)
downloadonline_test-6db62cad24e0b7cd9c1a5f354566cc0e9186d1cd.tar.gz
online_test-6db62cad24e0b7cd9c1a5f354566cc0e9186d1cd.tar.bz2
online_test-6db62cad24e0b7cd9c1a5f354566cc0e9186d1cd.zip
Merge pull request #185 from ankitjavalkar/course-prerequisite
Add course instructions
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 8d4f930..5800ebd 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(default=None, 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):