2.1.7 search_city request
This commit is contained in:
@@ -6,6 +6,6 @@ from RoutesApp.js_views import new_route_view_ajax
|
||||
|
||||
urlpatterns = [
|
||||
# path('get_airports/', get_airports_ajax, name='get_airports_ajax'),
|
||||
path('get_address_point/', get_address_point_ajax, name='get_address_point_ajax'),
|
||||
path('search_city/', search_city_ajax, name='search_city_ajax'),
|
||||
# path('get_cities/', get_cities_ajax, name='get_cities_ajax'),
|
||||
]
|
||||
@@ -16,7 +16,7 @@ import json
|
||||
from GeneralApp.funcs import get_inter_http_response
|
||||
from GeneralApp.funcs import get_and_set_lang
|
||||
|
||||
def get_address_point_ajax(request):
|
||||
def search_city_ajax(request):
|
||||
from .funcs import search_cities_in_db, search_airports_in_db
|
||||
|
||||
if request.method != 'POST':
|
||||
|
||||
Reference in New Issue
Block a user