Re: Struggling with Django/legacy data

2008-06-23 Thread skins96
OK. I've seen both those sections --- so Django doesn't expect a foreign key to be an integer? For some reason, I thought Django would expect an integer even if you used the to_field argument when you used foreign key. On Jun 23, 1:44 pm, "Norman Harman" <[EMAIL PROTECTED]> wrote: > skins96 wrote

Re: Struggling with Django/legacy data

2008-06-23 Thread Norman Harman
skins96 wrote: > Hi, > > I'm a noob who is struggling with understanding how Django might work > with legacy data. > > It seems Django's foreign keys rely on having an integer in both the > parent and child table. However, we get a lot of data where what's > needed is a join based on characters.

Struggling with Django/legacy data

2008-06-23 Thread skins96
Hi, I'm a noob who is struggling with understanding how Django might work with legacy data. It seems Django's foreign keys rely on having an integer in both the parent and child table. However, we get a lot of data where what's needed is a join based on characters. For instance, "wht" in the par