Fixture loading without pk with natural keys
|Reported by:||Brillgen Developers||Owned by:||nobody|
|Has patch:||no||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
While django used PKs to link data PKs were required to be present in the fixtures since they couldn't be predicted. But with natural_key support with Django 1.2 shouldn't fixtures make PKs optional?
Initially it can be left upto the test data to make sure that all objects without PK have correct natural foreign keys otherwise they will be linked incorrectly? Later on we can think of validating that objects without PKs do not objects linked to them without using natural keys. Although such validation is not done in the fixtures anyways.
I am estimating that is a very low hanging fruit but someone with more experience with this part of the code base can hopefully quickly comment till I go digging :).