diff options
author | QuentinAndre <quentin.andre@imt-atlantique.net> | 2021-07-09 15:07:42 +0200 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2022-07-08 09:58:48 +0200 |
commit | 5eb14c6e24c67c5ac53c06b1ba53893db47a3f91 (patch) | |
tree | 77496eaf09f22f6c507564244203cb42833e98f9 /archaeological_finds/urls.py | |
parent | 77245dac5fc748cff0306829c12f11f044a7cff7 (diff) | |
download | Ishtar-5eb14c6e24c67c5ac53c06b1ba53893db47a3f91.tar.bz2 Ishtar-5eb14c6e24c67c5ac53c06b1ba53893db47a3f91.zip |
add of get_geo_items in API + test
Diffstat (limited to 'archaeological_finds/urls.py')
-rw-r--r-- | archaeological_finds/urls.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/archaeological_finds/urls.py b/archaeological_finds/urls.py index 8a2a30d2c..0dc04b4f9 100644 --- a/archaeological_finds/urls.py +++ b/archaeological_finds/urls.py @@ -573,6 +573,11 @@ urlpatterns = [ name="autocomplete-findbasket-write", ), url(r"api/public/find/$", views.PublicFindAPI.as_view(), name="api-public-find"), + url(r"api/ishtar/finds/geo/(?P<pk>.+)/(?P<get_polygons>.+)?$", + check_rights(["view_find", "view_own_find"])( + views.get_geo_items, + ), + name="api-get-geo-items"), ] urlpatterns += get_urls_for_model(models.Find, views, own=True, autocomplete=True) |