diff --git a/api/views.py b/api/views.py index 2901f40..849eb6b 100644 --- a/api/views.py +++ b/api/views.py @@ -111,7 +111,7 @@ def get_all_places_ids_in_location_area_by_id(request): # else: # responce.append({'id':location.id, 'name':str(location)}) return Response(responce) - +@login_required def all_locations_with_full_name(request): all_locations = Place.objects.filter(is_location=True) response = '

Все населенные пункты

' @@ -121,6 +121,7 @@ def all_locations_with_full_name(request): response += "

The end

" return HttpResponse(response) +@login_required def all_locations_without_area(request): all_locations = Place.objects.filter(is_location=True) response = '

Все населенные пункты без районов

' @@ -131,6 +132,7 @@ def all_locations_without_area(request): response += "

The end

" return HttpResponse(response) +@login_required def all_locations_without_region(request): all_locations = Place.objects.filter(is_location=True) response = '

Все населенные пункты без районов

' @@ -141,6 +143,7 @@ def all_locations_without_region(request): response += "

The end

" return HttpResponse(response) +@login_required def all_locations_have_child(request): all_locations = Place.objects.all() response = '

Все локации имеющие наследников

' diff --git a/db.sqlite3 b/db.sqlite3 index 8da4545..09d0252 100644 Binary files a/db.sqlite3 and b/db.sqlite3 differ