def process_data(self, value):
if value:<EOL><INDENT>if self.is_related:<EOL><INDENT>self.data = self.datamodel.get_related_interface(<EOL>self.col_name<EOL>).get_pk_value(value)<EOL><DEDENT>else:<EOL><INDENT>self.data = self.datamodel.get(value)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>self.data = None<EOL><DEDENT>
Process the Python data applied to this field and store the result.
This will be called during form construction by the form's `kwargs` or
`obj` argument.

Converting ORM object to primary key for client form.

:param value: The python object containing the value to process.