Coverage for apis_core/apis_relations/urls.py: 100%
5 statements
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
« prev ^ index » next coverage.py v7.6.8, created at 2024-12-20 09:24 +0000
1from django.urls import path, re_path
3from apis_core.apis_entities.autocomplete3 import PropertyAutocomplete
5from . import views
7app_name = "apis_relations"
9urlpatterns = [
10 path("ajax/get/", views.get_form_ajax, name="get_form_ajax"),
11 re_path(
12 r"^ajax/save/(?P<entity_type>\w+)/(?P<kind_form>\w+)/(?P<SiteID>[0-9]+)(?:/(?P<ObjectID>[0-9]*))?/$",
13 views.save_ajax_form,
14 name="save_ajax_form",
15 ),
16 re_path(
17 r"^(?P<entity>[a-z0-9_]+)/list/$",
18 views.GenericRelationView.as_view(),
19 name="generic_relations_list",
20 ),
21 re_path(
22 r"^autocomplete/(?P<entity_self>[a-zA-Z0-9-_]+)/(?P<entity_other>[a-zA-Z0-9-_]+)/$",
23 PropertyAutocomplete.as_view(),
24 name="generic_property_autocomplete",
25 ),
26]