From 83f999c77fa2a262df304953c38339351fc719b1 Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 22 Feb 2018 11:12:24 +0100 Subject: [PATCH 1/1] remove gazeta links - lektury.gazeta.pl is dead --- src/catalogue/admin.py | 2 +- src/catalogue/management/commands/report_dead_links.py | 2 -- src/catalogue/templates/catalogue/book_detail.html | 5 ----- src/catalogue/templates/catalogue/picture_detail.html | 8 -------- src/catalogue/templates/catalogue/tagged_object_list.html | 5 ----- src/pdcounter/templates/pdcounter/author_detail.html | 7 ------- 6 files changed, 1 insertion(+), 28 deletions(-) diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index 51305e276..76d32dcf8 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -37,7 +37,7 @@ class BookAdmin(TaggableModelAdmin): def change_view(self, request, object_id, extra_context=None): if 'advanced' not in request.GET: self.form = forms.ModelForm - self.fields = ('title', 'description', 'gazeta_link', 'wiki_link', 'recommended') + self.fields = ('title', 'description', 'wiki_link', 'recommended') self.readonly_fields = ('title',) else: self.form = TaggableModelForm diff --git a/src/catalogue/management/commands/report_dead_links.py b/src/catalogue/management/commands/report_dead_links.py index 508880e9b..1eb73127b 100644 --- a/src/catalogue/management/commands/report_dead_links.py +++ b/src/catalogue/management/commands/report_dead_links.py @@ -23,7 +23,6 @@ class Command(BaseCommand): ( Book, [ - ('gazeta_link', lambda b: b.gazeta_link), ('wiki_link', lambda b: b.wiki_link), ('źródło', lambda b: b.extra_info.get('source_url')), ], @@ -32,7 +31,6 @@ class Command(BaseCommand): ( Picture, [ - ('gazeta_link', lambda p: p.culturepl_link), ('wiki_link', lambda p: p.wiki_link), ('źródło', lambda p: p.extra_info.get('source_url')), ], diff --git a/src/catalogue/templates/catalogue/book_detail.html b/src/catalogue/templates/catalogue/book_detail.html index 4f590ce79..e3f4d7336 100644 --- a/src/catalogue/templates/catalogue/book_detail.html +++ b/src/catalogue/templates/catalogue/book_detail.html @@ -66,11 +66,6 @@ {% trans "Book on" %} {% trans "Editor's Platform" %} {% endif %} - {% if book.gazeta_link %} -
- {% trans "Book description on Lektury.Gazeta.pl" %} -
- {% endif %} {% if book.wiki_link %}
{% trans "Book description on Wikipedia" %} diff --git a/src/catalogue/templates/catalogue/picture_detail.html b/src/catalogue/templates/catalogue/picture_detail.html index 5eeea7f5b..fb864f693 100644 --- a/src/catalogue/templates/catalogue/picture_detail.html +++ b/src/catalogue/templates/catalogue/picture_detail.html @@ -69,14 +69,6 @@ {% if picture.info.about and not hide_about %}
  • {% trans "Image on the Editor's Platform" %}
  • {% endif %} - {% comment %} - {% if book.gazeta_link %} -
  • {% trans "Picture description on Lektury.Gazeta.pl" %}
  • - {% endif %} - {% if book.wiki_link %} -
  • {% trans "Book description on Wikipedia" %}
  • - {% endif %} - {% endcomment %}

    {% trans "View XML source" %}

    diff --git a/src/catalogue/templates/catalogue/tagged_object_list.html b/src/catalogue/templates/catalogue/tagged_object_list.html index f83c7d5cd..f4ba6991c 100644 --- a/src/catalogue/templates/catalogue/tagged_object_list.html +++ b/src/catalogue/templates/catalogue/tagged_object_list.html @@ -103,11 +103,6 @@ {% endif %} - {% if tag.gazeta_link %} -
    - {{ tag }} {% trans "in Lektury.Gazeta.pl" %} -
    - {% endif %} {% if tag.wiki_link %}
    diff --git a/src/pdcounter/templates/pdcounter/author_detail.html b/src/pdcounter/templates/pdcounter/author_detail.html index 35d27e7f5..2c346ba70 100644 --- a/src/pdcounter/templates/pdcounter/author_detail.html +++ b/src/pdcounter/templates/pdcounter/author_detail.html @@ -20,13 +20,6 @@

    {% endif %} - {% if author.gazeta_link %} -

    - - {% trans "Read work's study of this author on Lektury.Gazeta.pl" %} - -

    - {% endif %} {% if author.wiki_link %}

    -- 2.20.1