Django

Code

Changeset 2204

Show
Ignore:
Timestamp:
01/31/06 15:38:02 (3 years ago)
Author:
adrian
Message:

Added 'Does Django support multiple-column primary keys?' to FAQ

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/faq.txt

    r2187 r2204  
    364364``ALTER TABLE`` statements, if any. 
    365365 
     366Do Django models support multiple-column primary keys? 
     367------------------------------------------------------ 
     368 
     369No. Only single-column primary keys are supported. 
     370 
     371But this isn't an issue in practice, because there's nothing stopping you from 
     372adding other constraints (using the ``unique_together`` model option or 
     373creating the constraint directly in your database), and enforcing the 
     374uniqueness at that level. Single-column primary keys are needed for things such 
     375as the admin interface to work; e.g., you need a simple way of being able to 
     376specify an object to edit or delete. 
     377 
    366378The database API 
    367379================