Why are there no better design options to implement them?  Are the tables being 
used in another software that you have no control over?
I would just merge the two tables and use one model.

From: django-users@googlegroups.com [mailto:django-users@googlegroups.com] On 
Behalf Of aysha...@gmail.com
Sent: Wednesday, March 8, 2017 8:24 AM
To: Django users
Subject: Re: Simple Join with no matching primary keys


Thanks for your answer, the models represent two different tables, identical 
structure but have to be segregated, there is no better design options to 
implement them. Any leads on how to do the join?




Models cannot be joined. There is no Model.join(). Models are objects you can 
relate to eachother.

Once you stop thinking in database terms, the problem is easily solved.



Since the two models are identical, why would you use two models? Your problem 
starts with your design - rethink it.

--

Melvyn Sopacua
--
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 
django-users+unsubscr...@googlegroups.com<mailto:django-users+unsubscr...@googlegroups.com>.
To post to this group, send email to 
django-users@googlegroups.com<mailto:django-users@googlegroups.com>.
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/5f7348a8-2267-4b18-96ee-624b22f63a5f%40googlegroups.com<https://groups.google.com/d/msgid/django-users/5f7348a8-2267-4b18-96ee-624b22f63a5f%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

-- 
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 django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
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/c8a3a35bdaaf421ebeda04480b91aba2%40ISS1.ISS.LOCAL.
For more options, visit https://groups.google.com/d/optout.

Reply via email to