old_contents: # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
  # MIT License. See license.txt
  
  from __future__ import unicode_literals
  import frappe
  
  from frappe.model.document import Document
  
  class Role(Document):
  	pass
new_contents: # Copyright (c) 2015, Frappe Technologies Pvt. Ltd. and Contributors
  # MIT License. See license.txt
  
  from __future__ import unicode_literals
  import frappe
  
  from frappe.model.document import Document
  
  class Role(Document):
  	def after_insert(self):
  		# Add role to Administrator
  		if frappe.flags.in_install != "frappe":
  			frappe.get_doc("User", "Administrator").add_roles(self.name)
  
subject: Add new role to Administrator