diff options
-rw-r--r-- | app/builder/base.py | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | app/locations/models.py | 0 | ||||
-rw-r--r-- | config/settings/settings.py | 1 |
3 files changed, 1 insertions, 2 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 diff --git a/config/settings/settings.py b/config/settings/settings.py index 608edf8..13bcb5e 100644 --- a/config/settings/settings.py +++ b/config/settings/settings.py @@ -143,7 +143,6 @@ INSTALLED_APPS = ( 'projects', 'guide', 'pages' - 'birds' ) |