Thanks. I was talking about the composite primary keys in my second 
question. I've seen that there is a library for it. So, no problem now. 
Thank you.

27 Kasım 2017 Pazartesi 01:49:15 UTC+3 tarihinde Kubilay Yazoğlu yazdı:
>
> Hello. I have two models. In one of them, I declared a foreign key to the 
> other one. Since this is done in Django by only specifying the Class name, 
> without specifying the field name(column name), when I try to create an 
> object in admin panel, it pulls the wrong column information.
>
> Two models A and B.
> B has a Foreignkey for accessing A.
> A has two fields Field1 and Field2.
> When I try to create an instance of B, in the field of Foreignkey, there 
> is a drop down menu but the content is not from the right field of A.
>
> How to specify it?
>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/6b65ec89-8bd6-4e92-bb01-f539cbae69da%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to