From: Radek Czajka Date: Mon, 26 Jun 2023 10:48:31 +0000 (+0200) Subject: Fix for heads. X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/51099aa7aa297f5f38fe052c5caa49b22170e7ac?hp=db0d48d5087bd81928eceffec3dd9379ca52f558 Fix for heads. --- diff --git a/src/catalogue/admin.py b/src/catalogue/admin.py index ebd14b9cb..ad5e209aa 100644 --- a/src/catalogue/admin.py +++ b/src/catalogue/admin.py @@ -16,6 +16,7 @@ class TagAdmin(admin.ModelAdmin): search_fields = ('name',) ordering = ('name',) readonly_fields = ('occurrences',) + raw_id_fields = ['user'] def occurrences(self, tag): return tag.items.count() diff --git a/src/wolnelektury/settings/contrib.py b/src/wolnelektury/settings/contrib.py index d1c47dfa7..3a58ae70c 100644 --- a/src/wolnelektury/settings/contrib.py +++ b/src/wolnelektury/settings/contrib.py @@ -5,6 +5,7 @@ HONEYPOT_FIELD_NAME = 'miut' PAGINATION_INVALID_PAGE_RAISES_404 = True THUMBNAIL_QUALITY = 95 THUMBNAIL_ALTERNATIVE_RESOLUTIONS = [2] +THUMBNAIL_PRESERVE_FORMAT = True MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl' MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl' diff --git a/src/wolnelektury/static/2022/styles/components/_search.scss b/src/wolnelektury/static/2022/styles/components/_search.scss index 3e77e40ce..511fbde00 100644 --- a/src/wolnelektury/static/2022/styles/components/_search.scss +++ b/src/wolnelektury/static/2022/styles/components/_search.scss @@ -151,7 +151,7 @@ border-radius: 18px; padding: 0px 10px; } - + &.type-info { &:before { content: '\1f6c8'; @@ -196,6 +196,11 @@ } } } + &.type-author { + img { + border-radius: 18px; + } + } &.type-set { &:before { content: '';