diff options
author | luxagraf <sng@luxagraf.net> | 2013-08-29 00:54:53 +0000 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2013-08-29 00:54:53 +0000 |
commit | 7a93c25344f1493227faa2ab18db006184baffa6 (patch) | |
tree | d3e7ecb01ef506408345e837c654c8fb33025b3e /app | |
parent | 4157151bed0c83e72f705c96c0732aab0d6a74f8 (diff) |
misc bug fixes
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/base.py | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | app/locations/models.py | 0 |
2 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) diff --git a/app/locations/models.py b/app/locations/models.py index 6fc85cf..6fc85cf 100644..100755 --- a/app/locations/models.py +++ b/app/locations/models.py |