Skip to content

Commit

Permalink
References to comment_set fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd-wechner committed Sep 22, 2021
1 parent dff907e commit 365b443
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion todo/tests/test_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def test_no_javascript_in_comments(todo_setup, client):
assert response.status_code == 200

task.refresh_from_db()
newcomment = task.comment_set.last()
newcomment = task.todo_comments.last()
assert newcomment != comment # Should have been modified by bleach
assert newcomment.body == bleach.clean(comment, strip=True)

Expand Down

0 comments on commit 365b443

Please sign in to comment.