Skip to content

Commit

Permalink
improved link display
Browse files Browse the repository at this point in the history
  • Loading branch information
arielfayol37 committed Aug 23, 2023
1 parent 81e277d commit 1fd873c
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 0 deletions.
Binary file modified deimos/__pycache__/models.cpython-311.pyc
Binary file not shown.
Binary file modified deimos/__pycache__/views.cpython-311.pyc
Binary file not shown.
Binary file modified phobos/__pycache__/views.cpython-311.pyc
Binary file not shown.
2 changes: 2 additions & 0 deletions phobos/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def assignment_management(request, assignment_id, course_id=None):
if not course.professors.filter(pk=request.user.pk).exists():
return HttpResponseForbidden('You are not authorized to manage this Assignment.')
questions = Question.objects.filter(assignment = assignment)
for question in questions:
question.text = replace_links_with_html(question.text)
context = {
"questions": questions,
"assignment": assignment
Expand Down

0 comments on commit 1fd873c

Please sign in to comment.