def get_python(self):
cursor = super(ReferenceField, self).get_python()<EOL>if self.multiselect:<EOL><INDENT>return cursor<EOL><DEDENT>else:<EOL><INDENT>try:<EOL><INDENT>return cursor[<NUM_LIT:0>]<EOL><DEDENT>except IndexError:<EOL><INDENT>return None<EOL><DEDENT><DEDENT>
Return cursor if multi-select, direct value if single-select