diff options
author | adityacp | 2017-01-06 16:49:39 +0530 |
---|---|---|
committer | adityacp | 2017-01-06 16:49:39 +0530 |
commit | f2875acf1f9edcecbc5e8e331a2f416246d84b0b (patch) | |
tree | 261544b1448c87107c79f997ac7c351307e832d3 | |
parent | 5f29daff88815e3ba87a2ff5933086e505e41581 (diff) | |
download | online_test-f2875acf1f9edcecbc5e8e331a2f416246d84b0b.tar.gz online_test-f2875acf1f9edcecbc5e8e331a2f416246d84b0b.tar.bz2 online_test-f2875acf1f9edcecbc5e8e331a2f416246d84b0b.zip |
Change question models function
-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 9fd4f9b..9b553b0 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -356,7 +356,7 @@ class Question(models.Model): for file_name, extract in file_names: q_file = os.path.join(path, file_name) if os.path.exists(q_file): - que_file = open(q_file, 'r') + que_file = open(q_file, 'rb') # Converting to Python file object with # some Django-specific additions django_file = File(que_file) |