yf_ymm преди 5 години
родител
ревизия
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)