fixes a bug in move_posts

This commit is contained in:
Nathan Dinsmore 2013-02-18 18:19:08 -05:00
parent 7b72843839
commit 135e4bd6bf

View file

@ -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