Show More
@@ -17,5 +17,8 b' class UtilsView(BaseBoardView, Dispatche' | |||||
17 | def ban_and_delete(self, request): |
|
17 | def ban_and_delete(self, request): | |
18 | post = Post.objects.get(id=request.GET['post_id']) |
|
18 | post = Post.objects.get(id=request.GET['post_id']) | |
19 | Ban.objects.get_or_create(ip=post.poster_ip) |
|
19 | Ban.objects.get_or_create(ip=post.poster_ip) | |
20 |
post. |
|
20 | if post.is_opening(): | |
|
21 | post.get_thread().delete() | |||
|
22 | else: | |||
|
23 | post.delete() | |||
21 |
|
24 |
General Comments 0
You need to be logged in to leave comments.
Login now