Skip to content

Commit

Permalink
Queryset delete
Browse files Browse the repository at this point in the history
  • Loading branch information
sometimesok committed Jan 25, 2021
1 parent 9d75e0c commit e65aaf2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ISS/views/forum.py
Expand Up @@ -891,8 +891,7 @@ def POST(self, request, poster_id):

threads.update(forum=form.cleaned_data['target_forum'])

for vote in votes:
vote.delete()
votes.delete()

if move_posts.count():
new_thread = Thread(
Expand Down

0 comments on commit e65aaf2

Please sign in to comment.