summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/builder/base.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/builder/base.py b/app/builder/base.py
index a578920..0d27702 100644
--- a/app/builder/base.py
+++ b/app/builder/base.py
@@ -199,7 +199,7 @@ class BuildWriting(Build):
self.writing_month_archives()
def get_model_querset(self):
- model = apps.get_model('blog', 'entry')
+ model = apps.get_model('jrnl', 'entry')
qs = model.objects.filter(status__exact=1)
return qs
@@ -223,7 +223,7 @@ class BuildWriting(Build):
def build_region_archive_pages(self):
model = apps.get_model('locations', 'Region')
- blog = apps.get_model('blog', 'entry')
+ blog = apps.get_model('jrnl', 'entry')
regions = model.objects.all()
for c in regions:
qs = blog.objects.filter(status__exact=1, location__state__country__lux_region=c.id).order_by('-pub_date')
@@ -232,7 +232,7 @@ class BuildWriting(Build):
def build_country_archive_pages(self):
model = apps.get_model('locations', 'Country')
- blog = apps.get_model('blog', 'entry')
+ blog = apps.get_model('jrnl', 'entry')
countries = model.objects.filter(visited=True)
for c in countries:
qs = blog.objects.filter(status__exact=1, location__state__country=c).order_by('-pub_date')
@@ -240,7 +240,7 @@ class BuildWriting(Build):
self.build_archive_pages(qs, path)
def writing_year_archives(self):
- entry = apps.get_model('blog', 'entry')
+ entry = apps.get_model('jrnl', 'entry')
years = entry.objects.dates('pub_date', 'year')
for year in years:
year = year.strftime('%Y')
@@ -251,7 +251,7 @@ class BuildWriting(Build):
self.write_file(fpath, t)
def writing_month_archives(self):
- entry = apps.get_model('blog', 'entry')
+ entry = apps.get_model('jrnl', 'entry')
months = entry.objects.dates('pub_date', 'month')
for m in months:
year = m.strftime('%Y')
@@ -407,7 +407,7 @@ class BuildPages(Build):
class BuildMap(Build):
def build(self):
- qs = apps.get_model('blog', 'entry').objects.filter(status__exact=1)
+ qs = apps.get_model('jrnl', 'entry').objects.filter(status__exact=1)
cl = apps.get_model('locations', 'Country').objects.filter(visited=True).exclude(name='default')
rl = apps.get_model('locations', 'Region').objects.all()
rtl = apps.get_model('locations', 'Route').objects.all()
@@ -438,7 +438,7 @@ class BuildMap(Build):
# Back up entries to markdown text files which are then stored in dropbox and git
class EntryBak(Build):
def get_model_querset(self):
- model = apps.get_model('blog', 'entry')
+ model = apps.get_model('jrnl', 'entry')
qs = model.objects.filter(status__exact=1)
return qs