>
> Yes: use the db_column attribute on your ForeignKey definition. For example:
>
>    myref = models.ForeignKey(OtherModel, db_column='foo')
>
> will use 'foo', rather than 'myref_id' as the column name

Thank you very much. This is exactly what I was looking for.

>
> If you're feeling enthusiastic, a fix to overcome this limitation
I shall definitely try to implement the fix as suggested in ticket 785
once I get to the many_to_many part.

Thanks & Regards,
Suraj


--~--~---------~--~----~------------~-------~--~----~
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