On 08-May-07, at 11:45 AM, Suraj wrote:
> I am trying to use a legacy database in Django. The application > has read only access to this database. This database contains > ForeignKey fields which don't fit Django's format of <field_name>_id. > Is there any way to specify the ForeignKey fields name? if you specify your own primary key in a table, django uses that and doesnt generate an id field. And it is this field that is referred to by the foreign key and m2m references -- regards kg http://lawgon.livejournal.com http://nrcfosshelpline.in/web/ --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

