From f2875acf1f9edcecbc5e8e331a2f416246d84b0b Mon Sep 17 00:00:00 2001 From: adityacp Date: Fri, 6 Jan 2017 16:49:39 +0530 Subject: Change question models function --- yaksh/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yaksh/models.py') 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) -- cgit