craiglabenz/django-import-export — pull request #1 by craiglabenz (2014-05-13 11:49:30+00:00)
Title: Logic improvement for `import_id_fields`

Before, when `import_id_fields` was set to a non-PK attribute and matching records were imported without a PK, the data importer would overwrite the matched model's PK with `None` from the import file. This turned would-be UPDATES into unexpected INSERTs with duplicate rows, or possible database integrity errors.

This change notes which field on the resource is the PK and does not overwrite that field with Falsy data.