django-fixture-magic icon indicating copy to clipboard operation
django-fixture-magic copied to clipboard

Allow natural keys

Open KJagiela opened this issue 4 years ago • 0 comments

I've noticed that using dump_object --natural and then trying to merge multpile fixtures using merge_fixtures does not work - merge_fixtures is expecting pk to be present. This PR "fixes" that. If pk is not present (as in i.e. contenttype or permission) it uses all of the string values as a key.

KJagiela avatar Mar 19 '20 13:03 KJagiela