Hi All,

Is it really the case that the Django ORM doesn't support composite 
primary keys?

I'm looking to do the equivalent of the following sqlalchemy model:

Base = declarative_base(...)

class Month(Base):
     __tablename__ = 'months'
     username = Column(
                 String,ForeignKey('users.name'),primary_key=True
                 )
     monthname = Column(String,primary_key=True,index=True)
     signins = Column(Integer,index=True)
     signouts = Column(Integer,index=True)
     total_pages = Column(Integer,index=True)
     last_viewed = Column(DateTime,index=True)

cheers,

Chris

-- 
Simplistix - Content Management, Batch Processing & Python Consulting
            - http://www.simplistix.co.uk

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to