Changes between Version 1 and Version 2 of MultipleColumnPrimaryKeys
- Timestamp:
- Jan 27, 2007, 8:54:40 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
MultipleColumnPrimaryKeys
v1 v2 4 4 5 5 = Current Status = 6 6 7 [http://code.djangoproject.com/ticket/373 Ticket 373: Add support for multiple-column primary keys] 7 8 Progress is stalled as there has been insufficient design discussion as to how this might be implemented. 8 9 9 = Major Issues 10 = Major Issues = 11 10 12 Taken from [http://code.djangoproject.com/ticket/373#comment:3 Jacob's comment on Ticket 373] 11 13 There are three basic problems in dealing with composite primary keys in Django. … … 16 18 17 19 = Proposed Solutions = 20 18 21 Proposed solutions for the admin URL issue: 19 22 "/app_label/module/pk1,pk2/" -- does not support text primary keys which include a comma. … … 21 24 22 25 = Alternative methods = 26 23 27 Currently, you can "fake" it by declaring one of the keys to be primary in Django and adding a unique constraint to the model. (needs more info...examples?) 24 28 25 29 = Links / Notes= 30 26 31 [http://code.djangoproject.com/ticket/373] 27 32 Rails/ActiveRecord doesn't support this natively, but [http://compositekeys.rubyforge.org/] is an add-on which does