Show More
@@ -77,7 +77,7 b' def index(request, page=0):' | |||
|
77 | 77 | context) |
|
78 | 78 | |
|
79 | 79 | |
|
80 |
@transaction. |
|
|
80 | @transaction.atomic | |
|
81 | 81 | def _new_post(request, form, opening_post=None): |
|
82 | 82 | """Add a new post (in thread or as a reply).""" |
|
83 | 83 | |
@@ -308,7 +308,7 b' def authors(request):' | |||
|
308 | 308 | return render(request, 'boards/authors.html', context) |
|
309 | 309 | |
|
310 | 310 | |
|
311 |
@transaction. |
|
|
311 | @transaction.atomic | |
|
312 | 312 | def delete(request, post_id): |
|
313 | 313 | """Delete post""" |
|
314 | 314 | |
@@ -325,7 +325,7 b' def delete(request, post_id):' | |||
|
325 | 325 | return redirect(thread, post_id=post.thread.id) |
|
326 | 326 | |
|
327 | 327 | |
|
328 |
@transaction. |
|
|
328 | @transaction.atomic | |
|
329 | 329 | def ban(request, post_id): |
|
330 | 330 | """Ban user""" |
|
331 | 331 | |
@@ -359,7 +359,7 b' def page_404(request):' | |||
|
359 | 359 | return render(request, 'boards/404.html', context) |
|
360 | 360 | |
|
361 | 361 | |
|
362 |
@transaction. |
|
|
362 | @transaction.atomic | |
|
363 | 363 | def tag_subscribe(request, tag_name): |
|
364 | 364 | """Add tag to favorites""" |
|
365 | 365 | |
@@ -372,7 +372,7 b' def tag_subscribe(request, tag_name):' | |||
|
372 | 372 | return _redirect_to_next(request) |
|
373 | 373 | |
|
374 | 374 | |
|
375 |
@transaction. |
|
|
375 | @transaction.atomic | |
|
376 | 376 | def tag_unsubscribe(request, tag_name): |
|
377 | 377 | """Remove tag from favorites""" |
|
378 | 378 | |
@@ -408,7 +408,7 b' def api_get_post(request, post_id):' | |||
|
408 | 408 | return HttpResponse(content=json) |
|
409 | 409 | |
|
410 | 410 | |
|
411 |
@transaction. |
|
|
411 | @transaction.atomic | |
|
412 | 412 | def api_get_threaddiff(request, thread_id, last_update_time): |
|
413 | 413 | """Get posts that were changed or added since time""" |
|
414 | 414 | |
@@ -528,7 +528,7 b' def _redirect_to_next(request):' | |||
|
528 | 528 | return redirect(index) |
|
529 | 529 | |
|
530 | 530 | |
|
531 |
@transaction. |
|
|
531 | @transaction.atomic | |
|
532 | 532 | def _ban_current_user(request): |
|
533 | 533 | """Add current user to the IP ban list""" |
|
534 | 534 |
General Comments 0
You need to be logged in to leave comments.
Login now