Try this: https://github.com/simone/django-compositekey/wiki
and send me feedback :-) On Thu, Jan 12, 2012 at 16:03, Demetrio Girardi <demetrio.gira...@gmail.com>wrote: > I need to read data from an "external" database table from my django > project. I am not interested in modifying the data, only reading it. > Of course I would like to create a django model for the table, because > it makes life so much more easier. > > I have already done this previously, however in this case the table > has a multiple field primary key, unsupported by Django. There is no > other field which is guaranteed to be unique that I can use as primary > key in the Django model. > > Do I need to worry about this? or can I just slap the primary_key flag > on any of the fields, since I will never be inserting or updating in > that table? > > -- > 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. > > -- 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.