def create_list_dict(self, document, list_field, doc_key):
list_dict = {"<STR_LIT>": document}<EOL>if isinstance(list_field.field, EmbeddedDocumentField):<EOL><INDENT>list_dict.update(self.create_document_dictionary(document=list_field.field.document_type_obj,<EOL>owner_document=document))<EOL><DEDENT>list_dict.update({"<STR_LIT>": list_field.field,<EOL>"<STR_LIT>": doc_key,<EOL>"<STR_LIT>": ListField,<EOL>"<STR_LIT>": get_widget(list_field.field),<EOL>"<STR_LIT>": getattr(document, doc_key, None)})<EOL>return list_dict<EOL>
Genereates a dictionary representation of the list field. Document
should be the document the list_field comes from.

DO NOT CALL DIRECTLY