diff options
author | luxagraf <sng@luxagraf.net> | 2020-11-15 13:40:42 -0500 |
---|---|---|
committer | luxagraf <sng@luxagraf.net> | 2020-11-15 13:40:42 -0500 |
commit | 6c4a847f047c2b6e1291cab63f01503b3b5da131 (patch) | |
tree | baab4727fa8c487f0918e874edd593e3584802fe /app | |
parent | 8da2f3bd3c00f36290c017a45b7453e466ee3666 (diff) |
fixed a bug in building the location based archives
Diffstat (limited to 'app')
-rw-r--r-- | app/posts/build.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/posts/build.py b/app/posts/build.py index 8c8fee0..e6370b9 100644 --- a/app/posts/build.py +++ b/app/posts/build.py @@ -85,11 +85,13 @@ class BuildJrnl(BuildNew): try: qs = self.model.objects.filter( status__exact=1, + post_type=PostType.JRNL, location__state__country=c ) except: qs = self.model.objects.filter( status__exact=1, + post_type=PostType.JRNL, location__state__country__lux_region=c.id ) print(c) |