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
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.
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
3 matches
Mail list logo