diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-07-26 14:43:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | 2a8d2108f9d87f62db245895cc716e90f2225af6 (patch) | |
tree | 941848bc1ef3914c21e5606bc62b422b10b85c5b /archaeological_finds/views.py | |
parent | 92bd9026e0b6397103da83bffe64f3a53ee06742 (diff) | |
download | Ishtar-2a8d2108f9d87f62db245895cc716e90f2225af6.tar.bz2 Ishtar-2a8d2108f9d87f62db245895cc716e90f2225af6.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 bba4efb13..4c1c3890b 100644 --- a/archaeological_finds/views.py +++ b/archaeological_finds/views.py @@ -1338,14 +1338,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) |