diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-07-26 14:43:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-10-25 12:06:02 +0200 |
commit | 0bc2a87a78c770dd511ec4e2856fc8500cae4e7b (patch) | |
tree | a249d82a089af17c2c99c1a339d6c6d1fb029452 /archaeological_finds/views.py | |
parent | c31d1773e5fe60baf3108aba736cd6538a8e4e73 (diff) | |
download | Ishtar-0bc2a87a78c770dd511ec4e2856fc8500cae4e7b.tar.bz2 Ishtar-0bc2a87a78c770dd511ec4e2856fc8500cae4e7b.zip |
url with get and display geo items
Diffstat (limited to 'archaeological_finds/views.py')
-rw-r--r-- | archaeological_finds/views.py | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/archaeological_finds/views.py b/archaeological_finds/views.py index 06bbfe632..7dae92827 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1320,14 +1320,10 @@ class PublicFindAPI(APIView): return Response(serializer.data) -def get_geo_items( - request, - get_polygons, - pk=None, - context_record_pk=None, - operation_pk=None, - current_right=None, -): +def get_geo_items(request, get_polygons, current_right=None): + operation_pk = request.GET.get("operation_pk") + context_record_pk = request.GET.get("context_record_pk") + pk = request.GET.get("pk") if operation_pk: try: bf = Operation.objects.get(pk=operation_pk) |