Fixed couple of typos for edit types which results in showing proper edit types instead of all data types.
parent
584a200bf0
commit
a6841bb1e1
|
|
@ -155,7 +155,7 @@ def column_formatter(conn, tid, clid, data, edit_types_list=None,
|
|||
|
||||
# We will need present type in edit mode
|
||||
edit_types_list.append(data['cltype'])
|
||||
data['edit_types_list'] = edit_types_list
|
||||
data['edit_types'] = edit_types_list
|
||||
|
||||
data['cltype'] = DataTypeReader.parse_type_name(data['cltype'])
|
||||
|
||||
|
|
@ -206,7 +206,7 @@ def get_formatted_columns(conn, tid, data, other_columns,
|
|||
|
||||
for column in data['columns']:
|
||||
column_formatter(conn, tid, column['attnum'], column,
|
||||
edit_types[col['atttypid']])
|
||||
edit_types[column['atttypid']])
|
||||
|
||||
return data
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue