diff options
Diffstat (limited to 'app')
-rw-r--r-- | app/builder/views.py | 8 | ||||
-rw-r--r-- | app/sightings/build.py | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/app/builder/views.py b/app/builder/views.py index 4547689..9e4671e 100644 --- a/app/builder/views.py +++ b/app/builder/views.py @@ -5,7 +5,7 @@ from src.build import builder as src_builder from jrnl.build import archive_builder, detail_builder, home_builder, rss_builder, map_builder from resume.build import builder as resume_builder from books.build import builder as book_builder -from birds.build import builder as bird_builder +from sightings.build import builder as sightings_builder from photos.build import builder as photo_builder from figments.build import builder as figments_builder from notes.build import builder as notes_builder @@ -41,9 +41,9 @@ def do_build(request): elif section == 'buildbooks': context = {'message': 'Writing Book Pages to Disk'} book_builder() - elif section == 'buildbirds': - context = {'message': 'Writing Bird Pages to Disk'} - bird_builder() + elif section == 'buildsightings': + context = {'message': 'Writing Sightings Pages to Disk'} + sightings_builder() elif section == 'src': context = {'message': 'Writing src section to Disk'} src_builder() diff --git a/app/sightings/build.py b/app/sightings/build.py index 565b675..97eecd5 100644 --- a/app/sightings/build.py +++ b/app/sightings/build.py @@ -3,19 +3,19 @@ from django.urls import reverse from builder.base import BuildNew -class BuildBirds(BuildNew): +class BuildSightings(BuildNew): def build(self): self.build_detail_view() self.build_list_view( - base_path=reverse("birds:list_redirect"), + base_path=reverse("sightings:list"), paginate_by=24 ) - print("building birds") + print("building sightings") def get_model_queryset(self): return self.model.objects.all() def builder(): - j = BuildBirds("birds", "birdsighting") + j = BuildSightings("ap", "sighting") j.build() |