Put new comment creation logic in separate view #new_comment
Only works for comments on thesis links. All comment forms should post to this link from now on! (So all logic pertaining comment creation should disappear from the models' detail view.) I also added a `new_comment.html` partial template and added tests.
Showing
- comments/templates/comments/new_comment.html 27 additions, 0 deletionscomments/templates/comments/new_comment.html
- comments/test_views.py 38 additions, 0 deletionscomments/test_views.py
- comments/urls.py 1 addition, 0 deletionscomments/urls.py
- comments/views.py 44 additions, 2 deletionscomments/views.py
- scipost/factories.py 1 addition, 1 deletionscipost/factories.py
- theses/templates/theses/thesis_detail.html 1 addition, 25 deletionstheses/templates/theses/thesis_detail.html
- theses/test_views.py 18 additions, 18 deletionstheses/test_views.py
- theses/views.py 2 additions, 36 deletionstheses/views.py
Loading
Please register or sign in to comment