So foreign key is fine. Thank you. I thought that maybe theres a better way
than using foreign key.
On Friday, January 5, 2018 at 4:38:58 PM UTC+9, Dylan Reinhold wrote:
>
> | But i have a feeling this is a very troublesome way to do it.
>
> Why do you have this feeling? Foreign key to another ta
| But i have a feeling this is a very troublesome way to do it.
Why do you have this feeling? Foreign key to another table sounds fine.
If you don't think that list will change much you could do it as a choice.
https://docs.djangoproject.com/en/2.0/ref/models/fields/#choices
Dylan
On Thu, Jan 4
I have a table called family, you can see the models.py below.
My partner told me that he wanted the relationship to change to this kind
1,Father
2,Mother
3,Husband
4,Wife
5,Son
6,Daughter
7,Aunt
8,Uncle
9,Nephew
10,Niece
11,Others
This is where he will sent me the id (eg:5) and i will save that
3 matches
Mail list logo