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
Post a Comment