diff options
| author | Thibault Delavallée <tde@openerp.com> | 2014-04-01 11:54:30 +0200 |
|---|---|---|
| committer | Thibault Delavallée <tde@openerp.com> | 2014-04-01 11:54:30 +0200 |
| commit | 76141aaecf7f4de223f1ead384c5dcc33cb49ca8 (patch) | |
| tree | df31bb1b85348cbc4182cb0459397db73ea8652b | |
| parent | e29e6dfe2652d689a541fa4e58b8c8deaec4dc47 (diff) | |
[FIX] website_blog: who wrote such stupid domains ?
bzr revid: tde@openerp.com-20140401095430-tn2i94o1bmdvevgd
| -rw-r--r-- | addons/website_blog/controllers/main.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/website_blog/controllers/main.py b/addons/website_blog/controllers/main.py index 522976410ab..5cb678b5475 100644 --- a/addons/website_blog/controllers/main.py +++ b/addons/website_blog/controllers/main.py @@ -138,9 +138,9 @@ class WebsiteBlog(http.Controller): domain = [] if blog: - domain += [("id", "in", [post.id for post in blog.blog_post_ids])] + domain += [('blog_id', '=', blog.id)] if tag: - domain += [("id", "in", [post.id for post in tag.blog_post_ids])] + domain += [('tag_ids', 'in', tag.id)] if date_begin and date_end: domain += [("create_date", ">=", date_begin), ("create_date", "<=", date_end)] |
