diff --git a/ArticlesApp/views.py b/ArticlesApp/views.py index 5fa756e..dbc4c58 100644 --- a/ArticlesApp/views.py +++ b/ArticlesApp/views.py @@ -25,21 +25,22 @@ def get_flat_pages_links_Dict(site): def get_article_breadcrumbs(request, art): # print('get_article_breadcrumbs') - half_count = art.articlesCountInBlock / 2 + articles_add_count = 1 + # half_count = articlesCountInBlock / 2 - art_List = ArticleModel.objects.filter(enable=True, article_DT__gte=art.article_DT).order_by( - 'article_DT')[:half_count] - artListDown = ArticleModel.objects.filter(enable=True, article_DT__lt=art.article_DT).order_by( - '-article_DT')[:art.articlesCountInBlock-len(art_List)] - if len(artListDown)