# Copyright (c) 2017, Frappe and Contributors
# License: GNU General Public License v3. See license.txt

from __future__ import unicode_literals
import frappe

def execute():
	sms_sender_name = frappe.db.get_single_value("SMS Settings", "sms_sender_name")
	if sms_sender_name:
		frappe.reload_doc("core", "doctype", "sms_settings")
		sms_settings = frappe.get_doc("SMS Settings")
		sms_settings.append("parameters", {
			"parameter": "sender_name",
			"value": sms_sender_name
		})
		sms_settings.flags.ignore_mandatory = True
		sms_settings.flags.ignore_permissions = True
		sms_settings.save()
@@ -168,16 +168,71 @@
 cute():%0A
+%09frappe.reload_doc(%22core%22, %22doctype%22, %22sms_parameter%22)%0A
 %09sms_sen
@@ -643,8 +643,9 @@
 s.save()
+%0A

Update add_sms_sender_name_as_parameters.py