From 667bf488d96af3f557047e1cde28e2cd282315ef Mon Sep 17 00:00:00 2001 From: rabiaiftikhar Date: Tue, 2 Oct 2018 15:06:13 +0500 Subject: [PATCH] EDUCATOR-3514 increase the length of task_input while creating instance of InstructorTask --- lms/djangoapps/instructor_task/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/instructor_task/models.py b/lms/djangoapps/instructor_task/models.py index a01495e3eb..2938e8d561 100644 --- a/lms/djangoapps/instructor_task/models.py +++ b/lms/djangoapps/instructor_task/models.py @@ -98,8 +98,8 @@ class InstructorTask(models.Model): json_task_input = json.dumps(task_input) # check length of task_input, and return an exception if it's too long: - if len(json_task_input) > 255: - fmt = 'Task input longer than 255: "{input}" for "{task}" of "{course}"' + if len(json_task_input) > 265: + fmt = 'Task input longer than 265: "{input}" for "{task}" of "{course}"' msg = fmt.format(input=json_task_input, task=task_type, course=course_id) raise ValueError(msg)