<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generate_data_for_edit_page(self):
 """ Generate a custom representation of table's fields in dictionary type if exist edit form else use default representation. :return: dict """


        if not self.can_edit:
            return {}

        if self.edit_form:
            return self.edit_form.to_dict()

        return self.generate_simple_data_page()