summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorankitjavalkar2020-09-11 10:44:08 +0530
committerankitjavalkar2020-09-11 10:44:08 +0530
commit89d7fb87fdacef4a15f36188938ab7044350f44e (patch)
treeab19eac11ca9a247bce3b80bf81401cc889128a2 /yaksh/models.py
parent23bf46ac2e262ceb373388196962a0bec048c6cb (diff)
downloadonline_test-89d7fb87fdacef4a15f36188938ab7044350f44e.tar.gz
online_test-89d7fb87fdacef4a15f36188938ab7044350f44e.tar.bz2
online_test-89d7fb87fdacef4a15f36188938ab7044350f44e.zip
Multiple changes
- Increase max_limit for files names in AssignmentUploads - Add email display to Added Teacher/TA screen
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 84cad1e..d051e68 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2531,7 +2531,7 @@ class AssignmentUploadManager(models.Manager):
class AssignmentUpload(models.Model):
user = models.ForeignKey(User, on_delete=models.CASCADE)
assignmentQuestion = models.ForeignKey(Question, on_delete=models.CASCADE)
- assignmentFile = models.FileField(upload_to=get_assignment_dir)
+ assignmentFile = models.FileField(upload_to=get_assignment_dir, max_length=255)
question_paper = models.ForeignKey(QuestionPaper, blank=True, null=True,
on_delete=models.CASCADE)
course = models.ForeignKey(Course, null=True, blank=True,