diff options
author | adityacp | 2020-01-21 11:50:10 +0530 |
---|---|---|
committer | adityacp | 2020-01-21 11:50:10 +0530 |
commit | 1a485a73245e10e4f2c49e10e376eaa8f2f2ca8c (patch) | |
tree | 74f2988ddcc1e490a8d22e65b260dd5861169adc /yaksh/models.py | |
parent | 2ba4173ae9ceb2f1eb2b24e028b2ae419a4d035c (diff) | |
download | online_test-1a485a73245e10e4f2c49e10e376eaa8f2f2ca8c.tar.gz online_test-1a485a73245e10e4f2c49e10e376eaa8f2f2ca8c.tar.bz2 online_test-1a485a73245e10e4f2c49e10e376eaa8f2f2ca8c.zip |
Add messages in clone course view
Diffstat (limited to 'yaksh/models.py')
-rw-r--r-- | yaksh/models.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/yaksh/models.py b/yaksh/models.py index 6881b4f..6fb9807 100644 --- a/yaksh/models.py +++ b/yaksh/models.py @@ -879,6 +879,7 @@ class Course(models.Model): copy_module_name = "Copy of {0}".format(module.name) new_module = module._create_module_copy(user, copy_module_name) new_course.learning_module.add(new_module) + return new_course def request(self, *users): self.requests.add(*users) |