Fix for heads.
authorRadek Czajka <rczajka@rczajka.pl>
Mon, 26 Jun 2023 10:48:31 +0000 (12:48 +0200)
committerRadek Czajka <rczajka@rczajka.pl>
Mon, 26 Jun 2023 10:48:31 +0000 (12:48 +0200)
src/catalogue/admin.py
src/wolnelektury/settings/contrib.py
src/wolnelektury/static/2022/styles/components/_search.scss

index ebd14b9..ad5e209 100644 (file)
@@ -16,6 +16,7 @@ class TagAdmin(admin.ModelAdmin):
     search_fields = ('name',)
     ordering = ('name',)
     readonly_fields = ('occurrences',)
     search_fields = ('name',)
     ordering = ('name',)
     readonly_fields = ('occurrences',)
+    raw_id_fields = ['user']
 
     def occurrences(self, tag):
         return tag.items.count()
 
     def occurrences(self, tag):
         return tag.items.count()
index d1c47df..3a58ae7 100644 (file)
@@ -5,6 +5,7 @@ HONEYPOT_FIELD_NAME = 'miut'
 PAGINATION_INVALID_PAGE_RAISES_404 = True
 THUMBNAIL_QUALITY = 95
 THUMBNAIL_ALTERNATIVE_RESOLUTIONS = [2]
 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'
 
 MODELTRANSLATION_DEFAULT_LANGUAGE = 'pl'
 MODELTRANSLATION_PREPOPULATE_LANGUAGE = 'pl'
index 3e77e40..511fbde 100644 (file)
             border-radius: 18px;
             padding: 0px 10px;
         }
             border-radius: 18px;
             padding: 0px 10px;
         }
-        
+
         &.type-info {
             &:before {
                 content: '\1f6c8';
         &.type-info {
             &:before {
                 content: '\1f6c8';
                 }
             }
         }
                 }
             }
         }
+        &.type-author {
+            img {
+                border-radius: 18px;
+            }
+        }
         &.type-set {
             &:before {
                 content: '';
         &.type-set {
             &:before {
                 content: '';