fixes a bug in move_posts
This commit is contained in:
parent
7b72843839
commit
135e4bd6bf
1 changed files with 1 additions and 1 deletions
|
@ -752,7 +752,7 @@ def move_posts(request, topic_id):
|
|||
except Topic.DoesNotExist:
|
||||
messages.error(request, _("That thread doesn't exist."))
|
||||
else:
|
||||
if request.POST['move_all']:
|
||||
if 'move_all' in request.POST:
|
||||
Post.objects.filter(topic=topic).update(topic=to_topic)
|
||||
topic.delete()
|
||||
moved = True
|
||||
|
|
Reference in a new issue