python - DJANGO: How to query multiple tables, equal model without looping -


i'm looking nice way query(django) temporal data, stored in different tables, share same model. here's example data model:

class mymodel(models.model):     x = models.floatfield()      class meta:         db_table = "24-01-2017" 

now, of course loop on different days, changing _meta.db_table every iteration, there should way in single query in django. this doesn't seem it, django develops this may outdated , don't see related in documentation.

how handle neatly?

thanks in advance!

edit 1

hm, i'm looking way perform outer join... can't find implementation this.


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -