Browse Source

调整数据表

yf_ymm 5 years ago
parent
commit
6fe4c9ee04
1 changed files with 1 additions and 1 deletions
  1. 1 1
      apps/Equipment/views.py

+ 1 - 1
apps/Equipment/views.py

@@ -2275,7 +2275,7 @@ class Repertory_New(ListView):
         current_user = MyUser.objects.get(username=username)
         ids = int(request.GET.get('ids'))
         try:
-            art = FarmList.objects.filter(garden=ids,user=user_name)
+            art = FarmList.objects.filter(garden=ids,user=current_user)
             if art:
                 art_list = Store_Manage.objects.all()
             print(art_list)