summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorankitjavalkar2020-09-14 11:58:06 +0530
committerGitHub2020-09-14 11:58:06 +0530
commitaec938faa0c6c47a7ca061a35631a825996a0a16 (patch)
tree3bed8b1c6dea72c893cbeed33d95c368d870a36f
parent2fbf184c2f18eb52bc4a6c6c6a9168572d2fd23c (diff)
parent89d7fb87fdacef4a15f36188938ab7044350f44e (diff)
downloadonline_test-aec938faa0c6c47a7ca061a35631a825996a0a16.tar.gz
online_test-aec938faa0c6c47a7ca061a35631a825996a0a16.tar.bz2
online_test-aec938faa0c6c47a7ca061a35631a825996a0a16.zip
Merge pull request #758 from ankitjavalkar/fix_file_name_error
Multiple Fixes
-rw-r--r--yaksh/models.py2
-rw-r--r--yaksh/templates/yaksh/course_teachers.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 87454a6..8297ec8 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -2542,7 +2542,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>