code: def generate_data_for_edit_page(self):
          
  
          if not self.can_edit:
              return {}
  
          if self.edit_form:
              return self.edit_form.to_dict()
  
          return self.generate_simple_data_page()
docs: Generate a custom representation of table's fields in dictionary type
          if exist edit form else use default representation.
  
          :return: dict