From 0b608e1b3eeae7aa4e2a0b60ca745c60e3cb0fa3 Mon Sep 17 00:00:00 2001 From: SDE Date: Fri, 22 Sep 2023 12:45:10 +0300 Subject: [PATCH] 0.7.41 main page cut count articles --- GeneralApp/views.py | 2 +- TWB/settings.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GeneralApp/views.py b/GeneralApp/views.py index 8123b52..9847316 100644 --- a/GeneralApp/views.py +++ b/GeneralApp/views.py @@ -38,7 +38,7 @@ def MainPage(request): page = StaticPage.objects.get(url='main') from ArticlesApp.models import ArticleModel - arts = ArticleModel.objects.filter(enable=True).order_by('-modifiedDT') + arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4] Dict = { 'page': page, diff --git a/TWB/settings.py b/TWB/settings.py index b78404b..6766476 100644 --- a/TWB/settings.py +++ b/TWB/settings.py @@ -221,7 +221,7 @@ CKEDITOR_JQUERY_URL = 'https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery CKEDITOR_CONFIGS = { 'default': { 'height': 291, - 'width': '89vw', + 'width': '70vw', # 'filebrowserWindowHeight': 600, # 'filebrowserWindowWidth': "100%", 'toolbar': 'Custom',