From e41245804f76433eadbb9844ee3960da467e4239 Mon Sep 17 00:00:00 2001 From: erjemin Date: Thu, 19 Feb 2026 20:00:41 +0300 Subject: [PATCH] ---: minor --- dicquo/web/management/commands/reprocess_typography.py | 6 +++--- dicquo/web/models.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dicquo/web/management/commands/reprocess_typography.py b/dicquo/web/management/commands/reprocess_typography.py index b039133..43488b0 100644 --- a/dicquo/web/management/commands/reprocess_typography.py +++ b/dicquo/web/management/commands/reprocess_typography.py @@ -38,15 +38,15 @@ class Command(BaseCommand): # Настройки типографа settings = { 'langs': ['ru'], - 'process_html': True, + 'process_html': True, # Обрабатываем как HTML 'quotes': True, 'layout': LayoutProcessor(langs=['ru'], process_initials_and_acronyms=True, process_units=True), 'unbreakables': True, 'hyphenation': Hyphenator(langs=['ru'], max_unhyphenated_len=12), 'symbols': True, - 'hanging_punctuation': 'left', + 'hanging_punctuation': 'left', # ВАЖНО: Слева 'mode': 'mixed', - 'sanitizer': SanitizerProcessor(mode='html'), + 'sanitizer': SanitizerProcessor(mode='etp'), # ВАЖНО: Санитайзинг включен (очистит старую разметку) } self.stdout.write(f"Настройка Типографа с параметрами: {settings}") diff --git a/dicquo/web/models.py b/dicquo/web/models.py index 79a434a..8d9104f 100644 --- a/dicquo/web/models.py +++ b/dicquo/web/models.py @@ -397,4 +397,4 @@ class TbDictumAndQuotes(models.Model): class Meta: verbose_name = u"ВЫСКАЗЫВАНИЕ" verbose_name_plural = u"ВЫСКАЗЫВАНИЯ" - ordering = ['id', ] + ordering = ['-id', ]