0.0.40
search_list show rules
This commit is contained in:
@@ -24,7 +24,7 @@ def get_address_point_ajax(request):
|
||||
|
||||
data = json.loads(request.body)
|
||||
|
||||
if not 'search_str' in data or not 'type_transport' in data:
|
||||
if not 'search_str' in data or not 'type_transport' in data or not 'ctrl_name' in data:
|
||||
errors_Dict = {
|
||||
'errors': {
|
||||
'all__': f'ошибка в запросе = недостаточно данных'
|
||||
@@ -32,7 +32,7 @@ def get_address_point_ajax(request):
|
||||
}
|
||||
return JsonResponse(errors_Dict, status=400)
|
||||
|
||||
if len(data['search_str'].strip()) < 0:
|
||||
if len(data['search_str'].strip()) < 3:
|
||||
res_data = []
|
||||
else:
|
||||
if data['type_transport'] == 'avia':
|
||||
|
||||
Reference in New Issue
Block a user