django-fixture-magic
django-fixture-magic copied to clipboard
Allow natural keys
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.