summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorCruiseDevice2020-09-17 13:32:12 +0530
committerankitjavalkar2020-10-08 10:42:51 +0530
commit31e258a9d2e253691fd548d47aaab3cfee756322 (patch)
tree496d815a2df967d515d09030108324d7a7d5a998 /yaksh/models.py
parent5e49406420207123afec88a1ca7138e7a58c2acc (diff)
downloadonline_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.gz
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.tar.bz2
online_test-31e258a9d2e253691fd548d47aaab3cfee756322.zip
Fix tests and minor changes
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index df70fc1..2ed03ed 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1102,7 +1102,7 @@ class Course(models.Model):
learning_units.extend(module.get_learning_units())
return learning_units
- def get_lesson_posts(self, user):
+ def get_lesson_posts(self):
learning_units = self.get_learning_units()
comments = []
for unit in learning_units:
@@ -1113,7 +1113,7 @@ class Course(models.Model):
post = Post.objects.get(
target_ct=lesson_ct,
target_id=unit.lesson.id,
- active=True, title=title, creator=user
+ active=True, title=title
)
except Post.DoesNotExist:
post = None