Changes between Version 9 and Version 10 of CompositePrimaryKeyDesignNotes
- Timestamp:
- Jul 22, 2010, 8:08:56 AM (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
CompositePrimaryKeyDesignNotes
v9 v10 4 4 5 5 == Design Questions == 6 '' 'How do you define multiple primary keys?'''6 ''How do you define multiple primary keys?'' 7 7 8 8 The "neatest" solution would be to allow primary_key=True on multiple fields but this may be precluded by other design considerations. 9 9 10 '' 'How do you foreign key onto a table with a composite foreign key?'''10 ''How do you foreign key onto a table with a composite foreign key?'' 11 11 12 '' 'What do you use for .get(pk=foo) with a composite primary key?'''12 ''What do you use for .get(pk=foo) with a composite primary key?'' 13 13 14 14 The likely solution is to use a tuple or dictionary though there is mention of the comment framework overlapping with this. 15 15 16 '' 'Admin urls need a consistent way of mapping a url to an object'''16 ''Admin urls need a consistent way of mapping a url to an object'' 17 17 18 18 Should be able to be handled with some nice url escaping.