From 0f5fb20c28a53685867818f07b8ce1b59e594ffd Mon Sep 17 00:00:00 2001 From: luxagraf Date: Tue, 5 Jun 2018 17:52:35 -0500 Subject: fixed some bugs on live server --- app/sightings/build.py | 2 +- app/sightings/migrations/0002_auto_20180205_1430.py | 5 ----- design/templates/archives/jrnl.html | 5 +++-- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/app/sightings/build.py b/app/sightings/build.py index 9ba758f..d61c78a 100644 --- a/app/sightings/build.py +++ b/app/sightings/build.py @@ -9,7 +9,7 @@ class BuildSightings(BuildNew): self.build_detail_view() self.build_list_view( base_path=reverse("sightings:list"), - paginate_by=18 + paginate_by=24 ) def get_model_queryset(self): diff --git a/app/sightings/migrations/0002_auto_20180205_1430.py b/app/sightings/migrations/0002_auto_20180205_1430.py index e917508..d936235 100644 --- a/app/sightings/migrations/0002_auto_20180205_1430.py +++ b/app/sightings/migrations/0002_auto_20180205_1430.py @@ -14,11 +14,6 @@ class Migration(migrations.Migration): name='sighting', options={'get_latest_by': 'pub_date', 'ordering': ['-pub_date']}, ), - migrations.RenameField( - model_name='sighting', - old_name='date', - new_name='pub_date', - ), migrations.AlterField( model_name='apclass', name='kind', diff --git a/design/templates/archives/jrnl.html b/design/templates/archives/jrnl.html index 08c1584..0c0c535 100644 --- a/design/templates/archives/jrnl.html +++ b/design/templates/archives/jrnl.html @@ -19,8 +19,9 @@
{% if object.featured_image %} - {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%}{%else%} - {{ object.title }}{%endif%} + {{image.alt}} photographed by {% if image.photo_credit_source %}{{image.photo_credit_source}}{%else%}luxagraf{%endif%} +{%else%} + {{ object.title }}{%endif%}

{{object.title|safe|smartypants|widont}}

-- cgit v1.2.3