Tables are coming from different sources, for each single datetime value 
there is a different url, in order to tie up the single source data it must 
live inside its own table.

On Wednesday, March 8, 2017 at 9:11:42 AM UTC-7, Matthew Pava wrote:
>
> 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...@googlegroups.com <javascript:> [mailto:
> django...@googlegroups.com <javascript:>] *On Behalf Of *aysh...@gmail.com 
> <javascript:>
> *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...@googlegroups.com <javascript:>.
> To post to this group, send email to djang...@googlegroups.com 
> <javascript:>.
> 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/a8da45de-6d08-4a04-8f08-ab28d24cc15a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to