def METHOD_NAME(_request, message_id):
    """Expires a message. Sets the end date to now"""
    message = get_object_or_404(Message, pk=message_id)
    message.publish_end = datetime.datetime.now()
    message.save()
    return HttpResponseRedirect(reverse('messages-view', args=(message_id,)))