summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
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 a86250b..7e0ce16 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -109,6 +109,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):
@@ -195,9 +196,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):