summaryrefslogtreecommitdiff
path: root/app/builder
diff options
context:
space:
mode:
authorluxagraf <sng@luxagraf.net>2013-08-29 00:54:53 +0000
committerluxagraf <sng@luxagraf.net>2013-08-29 00:54:53 +0000
commit7a93c25344f1493227faa2ab18db006184baffa6 (patch)
treed3e7ecb01ef506408345e837c654c8fb33025b3e /app/builder
parent4157151bed0c83e72f705c96c0732aab0d6a74f8 (diff)
misc bug fixes
Diffstat (limited to 'app/builder')
-rw-r--r--app/builder/base.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index 21b5335..6e99003 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -86,7 +86,7 @@ class BuildWriting(Build):
blog = get_model('blog', 'entry')
regions = model.objects.all()
for c in regions:
- qs = blog.objects.filter(status__exact=1,region = c).order_by('-pub_date')
+ qs = blog.objects.filter(status__exact=1,location__state__country__region = c.id).order_by('-pub_date')
path = 'writing/%s/' %(c.slug)
self.build_archive_pages(qs, path)