diff options
author | ankitjavalkar | 2020-09-11 10:44:08 +0530 |
---|---|---|
committer | ankitjavalkar | 2020-09-11 10:44:08 +0530 |
commit | 89d7fb87fdacef4a15f36188938ab7044350f44e (patch) | |
tree | ab19eac11ca9a247bce3b80bf81401cc889128a2 /yaksh | |
parent | 23bf46ac2e262ceb373388196962a0bec048c6cb (diff) | |
download | online_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')
-rw-r--r-- | yaksh/models.py | 2 | ||||
-rw-r--r-- | yaksh/templates/yaksh/course_teachers.html | 2 |
2 files changed, 3 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, diff --git a/yaksh/templates/yaksh/course_teachers.html b/yaksh/templates/yaksh/course_teachers.html index 1b1af87..ebbbb57 100644 --- a/yaksh/templates/yaksh/course_teachers.html +++ b/yaksh/templates/yaksh/course_teachers.html @@ -9,11 +9,13 @@ <tr> <th>Select</th> <th>Name</th> + <th>Email</th> </tr> {% for teacher in teachers %} <tr> <td><input type="checkbox" name="remove" value="{{ teacher.id }}"></td> <td>{{ teacher.get_full_name }}</td> + <td>{{ teacher.email }}</td> </tr> {% endfor %} <table> |