|
4 | 4 | from . import views
|
5 | 5 | from .constants import APP_LABEL
|
6 | 6 |
|
| 7 | +app_name = APP_LABEL |
| 8 | + |
7 | 9 | urlpatterns = [
|
| 10 | + path('custom-object-types/', include(get_model_urls(APP_LABEL, 'customobjecttype', detail=False))), |
| 11 | + path('custom-object-types/<int:pk>/', include(get_model_urls(APP_LABEL, 'customobjecttype'))), |
| 12 | + |
| 13 | + # Custom Object Type Fields |
8 | 14 | path(
|
9 |
| - "custom_object_types/", |
10 |
| - views.CustomObjectTypeListView.as_view(), |
11 |
| - name="customobjecttype_list", |
12 |
| - ), |
13 |
| - path( |
14 |
| - "custom_object_types/add/", |
15 |
| - views.CustomObjectTypeEditView.as_view(), |
16 |
| - name="customobjecttype_add", |
17 |
| - ), |
18 |
| - path( |
19 |
| - "custom_object_types/import/", |
20 |
| - views.CustomObjectTypeBulkImportView.as_view(), |
21 |
| - name="customobjecttype_bulk_import", |
22 |
| - ), |
23 |
| - path( |
24 |
| - "custom_object_types/edit/", |
25 |
| - views.CustomObjectTypeBulkEditView.as_view(), |
26 |
| - name="customobjecttype_bulk_edit", |
27 |
| - ), |
28 |
| - path( |
29 |
| - "custom_object_types/delete/", |
30 |
| - views.CustomObjectTypeBulkDeleteView.as_view(), |
31 |
| - name="customobjecttype_bulk_delete", |
32 |
| - ), |
33 |
| - path( |
34 |
| - "custom_object_types/<int:pk>/", |
35 |
| - include(get_model_urls(APP_LABEL, "customobjecttype")), |
36 |
| - ), |
37 |
| - path( |
38 |
| - "custom_object_type_fields/<int:pk>/", |
| 15 | + "custom-object-type-fields/<int:pk>/", |
39 | 16 | include(get_model_urls(APP_LABEL, "customobjecttypefield")),
|
40 | 17 | ),
|
41 | 18 | path(
|
42 |
| - "custom_object_type_fields/add/", |
| 19 | + "custom-object-type-fields/add/", |
43 | 20 | views.CustomObjectTypeFieldEditView.as_view(),
|
44 | 21 | name="customobjecttypefield_add",
|
45 | 22 | ),
|
| 23 | + |
| 24 | + # Custom Objects1 |
46 | 25 | path(
|
47 | 26 | "<str:custom_object_type>/",
|
48 | 27 | views.CustomObjectListView.as_view(),
|
|
54 | 33 | name="customobject_add",
|
55 | 34 | ),
|
56 | 35 | path(
|
57 |
| - "<str:custom_object_type>/delete/", |
58 |
| - views.CustomObjectDeleteView.as_view(), |
59 |
| - name="customobject_delete", |
60 |
| - ), |
61 |
| - path( |
62 |
| - "<str:custom_object_type>/bulk_edit/", |
| 36 | + "<str:custom_object_type>/bulk-edit/", |
63 | 37 | views.CustomObjectBulkEditView.as_view(),
|
64 | 38 | name="customobject_bulk_edit",
|
65 | 39 | ),
|
66 | 40 | path(
|
67 |
| - "<str:custom_object_type>/bulk_delete/", |
| 41 | + "<str:custom_object_type>/bulk-delete/", |
68 | 42 | views.CustomObjectBulkDeleteView.as_view(),
|
69 | 43 | name="customobject_bulk_delete",
|
70 | 44 | ),
|
|
0 commit comments