0.8.24 articles main 3 elements
This commit is contained in:
@@ -48,7 +48,7 @@ def MainPage(request):
|
|||||||
page = StaticPage.objects.get(url='main')
|
page = StaticPage.objects.get(url='main')
|
||||||
|
|
||||||
from ArticlesApp.models import ArticleModel
|
from ArticlesApp.models import ArticleModel
|
||||||
arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:4]
|
arts = ArticleModel.objects.filter(enable=True).order_by('-createDT')[:3]
|
||||||
|
|
||||||
Dict = {
|
Dict = {
|
||||||
'page': page,
|
'page': page,
|
||||||
|
|||||||
Reference in New Issue
Block a user