#NEWLINE# def set_elected( self , user ) : #NEWLINE# #INDENT# '\n        Makes user an elected user for this assignment.\n        ' #NEWLINE# ( related_user , __ ) = self . assignment_related_users . update_or_create ( user = user , defaults = { #NEWLINE# #INDENT# 'elected' : True , #NEWLINE# #UNINDENT# } )