diff options
author | ankitjavalkar | 2020-09-14 11:58:06 +0530 |
---|---|---|
committer | GitHub | 2020-09-14 11:58:06 +0530 |
commit | aec938faa0c6c47a7ca061a35631a825996a0a16 (patch) | |
tree | 3bed8b1c6dea72c893cbeed33d95c368d870a36f /yaksh/models.py | |
parent | 2fbf184c2f18eb52bc4a6c6c6a9168572d2fd23c (diff) | |
parent | 89d7fb87fdacef4a15f36188938ab7044350f44e (diff) | |
download | online_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
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 2 |
1 files changed, 1 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, |