tum месяцев назад: 11
Родитель
Сommit
2df045ec17
1 измененных файлов с 1 добавлено и 0 удалено
  1. 1 0
      app/report/views.py

+ 1 - 0
app/report/views.py

63
     if request.method == "POST":
63
     if request.method == "POST":
64
         if 'search_lot' in request.POST:
64
         if 'search_lot' in request.POST:
65
             lot_no = request.POST.get('lot_no', None)
65
             lot_no = request.POST.get('lot_no', None)
66
+            lot_no = lot_no.strip()
66
             if lot_no:
67
             if lot_no:
67
                 results = queryFromMaster(lot_no)
68
                 results = queryFromMaster(lot_no)
68
                 first_result = results[0] if results else None
69
                 first_result = results[0] if results else None