summaryrefslogtreecommitdiff
path: root/yaksh/models.py
diff options
context:
space:
mode:
authorCruiseDevice2020-04-15 21:19:09 +0530
committerCruiseDevice2020-04-15 21:19:09 +0530
commit169228186d8c9ad880ee33c5190e49203d2c5243 (patch)
tree4638c2069208b259375429a635b3f40545d75419 /yaksh/models.py
parent508e0e78bb0bd3e8ebbad81e948f13de5c01b20f (diff)
downloadonline_test-169228186d8c9ad880ee33c5190e49203d2c5243.tar.gz
online_test-169228186d8c9ad880ee33c5190e49203d2c5243.tar.bz2
online_test-169228186d8c9ad880ee33c5190e49203d2c5243.zip
Resolve comments
- Fix "'image' attribute has no file associated with it" issue. - Don't allow users who are not part of a course to see the discussion forum of that course. - Add Discussion forum link in moderator interface under course_details page. - Remove custom css for post and comments in Discussion forum. Use bootstrap 'img-fluid' class instead. 'img-fluid' fills the height and width of the card. - Use instance.uid instead of just instance in get_image_dir.
Diffstat (limited to 'yaksh/models.py')
-rw-r--r--yaksh/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yaksh/models.py b/yaksh/models.py
index 424e2f5..4a7c4ba 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -243,7 +243,7 @@ def validate_image(image):
def get_image_dir(instance, filename):
return os.sep.join((
- 'post_%s' % (instance), filename
+ 'post_%s' % (instance.uid), filename
))