diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-07-26 14:43:05 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-09-01 12:36:46 +0200 |
commit | a1abf9cd4ae5a736026e2e47d3add324dd3e461b (patch) | |
tree | 0c3413c590b76e85b25c6c1f0bfd121589089c6c /archaeological_finds/views.py | |
parent | c18865b0d1e0103abcd7db77ec99abe39dbdbcd4 (diff) | |
download | Ishtar-a1abf9cd4ae5a736026e2e47d3add324dd3e461b.tar.bz2 Ishtar-a1abf9cd4ae5a736026e2e47d3add324dd3e461b.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) |