yf_ymm 5 лет назад
Родитель
Сommit
cabecad606
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      apps/Home/views.py

+ 2 - 2
apps/Home/views.py

@@ -148,10 +148,10 @@ class Home(View):
         pick = Pick_Pub.objects.all()[0:6]
         farm = FarmList.objects.all()
         garden = GardenArea.objects.all()
-        hotel = Hotel_Info.objects.all()[0:5]
+        hotel = Hotel_Info.objects.all()[0:6]
         article = CKArticle.objects.all()[0:12]
         sightsee = Sightsee_Info.objects.all()[0:6]
-        hotel2 = Hotel_Info.objects.all().order_by('-upl_time')
+        hotel2 = Hotel_Info.objects.all().order_by('-upl_time')[0:6]
         if request.user.is_authenticated():
             user_name = request.user.username
             curr_user = MyUser.objects.get(username=user_name)