Skip to content

Commit 165c13c

Browse files
committed
Fixed comparing columns with requested matching column when in import
Ok I don't know how else to explain it. It fixes an error where a string comparison was .lower() on one side but not the other.
1 parent e7adaeb commit 165c13c

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
setup(
44
name = "django-simple-import",
5-
version = "1.14",
5+
version = "1.15",
66
author = "David Burke",
77
author_email = "david@burkesoftware.com",
88
description = ("A Django import tool easy enough your users could use it"),

simple_import/views.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def do_import(request, import_log_id):
342342
header_row_field_names += [match.field_name]
343343
header_row_default += [match.default_value]
344344
header_row_null_on_empty += [match.null_on_empty]
345-
if key_column_name == cell.lower():
345+
if key_column_name.lower() == cell.lower():
346346
key_index = i
347347

348348
with transaction.commit_manually():

0 commit comments

Comments
 (0)