Hello,
I am new to Django and programming...
I have a model similar to this one :

class myModel :
  attribute 1 = models.ForeignKey(myModel2, primary_key = True)
  attribute 2 = models.ForeignKey(myModel3, primary_key = True)

is it possible to have two primary keys?
In fact I want that the id of an instance of this class is the
concatenation of the (attribute 1 +attribute2).
How to do this?
thx

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

Reply via email to