|
|
@@ -156,7 +156,7 @@ class Home2(View):
|
|
|
video_news = Video_data.objects.all()[0:4]
|
|
|
product = Product.objects.all()[0:8]
|
|
|
pick = Pick_Pub.objects.all()[0:6]
|
|
|
- farm = FarmList.objects.all()[0:6]
|
|
|
+ garden = GardenArea.objects.all()
|
|
|
hotel = Hotel_Info.objects.all()[0:5]
|
|
|
if request.user.is_authenticated():
|
|
|
user_name = request.user.username
|
|
|
@@ -167,7 +167,7 @@ class Home2(View):
|
|
|
curr_user = ""
|
|
|
return render(request, 'outerNet/index2.html', context={"user_news": user_news,"zero_news": zero_news, "one_news": one_news,
|
|
|
"two_news": two_news, "video_news": video_news,"hotel":hotel,
|
|
|
- "product": product, "pick": pick, "farm": farm, "curr_user": curr_user})
|
|
|
+ "product": product, "pick": pick, "garden": garden, "curr_user": curr_user})
|
|
|
|
|
|
def post(self, request):
|
|
|
pass
|