ipfabric_netbox 4.3.0b5__py3-none-any.whl → 4.3.0b7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of ipfabric_netbox might be problematic. Click here for more details.

ipfabric_netbox/urls.py CHANGED
@@ -2,78 +2,45 @@ from django.urls import include
2
2
  from django.urls import path
3
3
  from utilities.urls import get_model_urls
4
4
 
5
- from . import views
5
+ from . import views # noqa: F401
6
+
7
+ # We need the blank views import so the views are already registered
8
+
6
9
 
7
10
  urlpatterns = (
8
11
  # Source
9
- path("source/", views.IPFabricSourceListView.as_view(), name="ipfabricsource_list"),
10
12
  path(
11
- "source/add/", views.IPFabricSourceEditView.as_view(), name="ipfabricsource_add"
12
- ),
13
- path(
14
- "source/delete/",
15
- views.IPFabricSourceBulkDeleteView.as_view(),
16
- name="ipfabricsource_bulk_delete",
13
+ "source/",
14
+ include(get_model_urls("ipfabric_netbox", "ipfabricsource", detail=False)),
17
15
  ),
18
16
  path(
19
17
  "source/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsource"))
20
18
  ),
21
- path(
22
- "source/<int:pk>/delete/",
23
- views.IPFabricSourceDeleteView.as_view(),
24
- name="ipfabricsource_delete",
25
- ),
26
19
  # Snapshot
27
20
  path(
28
21
  "snapshot/",
29
- views.IPFabricSnapshotListView.as_view(),
30
- name="ipfabricsnapshot_list",
31
- ),
32
- path(
33
- "snapshot/delete/",
34
- views.IPFabricSnapshotBulkDeleteView.as_view(),
35
- name="ipfabricsnapshot_bulk_delete",
22
+ include(get_model_urls("ipfabric_netbox", "ipfabricsnapshot", detail=False)),
36
23
  ),
37
24
  path(
38
25
  "snapshot/<int:pk>/",
39
26
  include(get_model_urls("ipfabric_netbox", "ipfabricsnapshot")),
40
27
  ),
41
- path(
42
- "snapshot/<int:pk>/delete/",
43
- views.IPFabricSnapshotDeleteView.as_view(),
44
- name="ipfabricsnapshot_delete",
45
- ),
46
28
  # Snapshot Data
47
29
  path(
48
- "data/delete",
49
- views.IPFabricSnapshotDataBulkDeleteView.as_view(),
50
- name="ipfabricdata_bulk_delete",
30
+ "data/",
31
+ include(get_model_urls("ipfabric_netbox", "ipfabricdata", detail=False)),
51
32
  ),
52
33
  path("data/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricdata"))),
53
- path(
54
- "data/<int:pk>/delete",
55
- views.IPFabricSnapshotDataDeleteView.as_view(),
56
- name="ipfabricdata_delete",
57
- ),
58
34
  # Sync
59
- path("sync/", views.IPFabricSyncListView.as_view(), name="ipfabricsync_list"),
60
- path("sync/add/", views.IPFabricSyncEditView.as_view(), name="ipfabricsync_add"),
61
35
  path(
62
- "sync/delete/",
63
- views.IPFabricSyncBulkDeleteView.as_view(),
64
- name="ipfabricsync_bulk_delete",
36
+ "sync/",
37
+ include(get_model_urls("ipfabric_netbox", "ipfabricsync", detail=False)),
65
38
  ),
66
39
  path("sync/<int:pk>/", include(get_model_urls("ipfabric_netbox", "ipfabricsync"))),
67
- path(
68
- "sync/<int:pk>/delete/",
69
- views.IPFabricSyncDeleteView.as_view(),
70
- name="ipfabricsync_delete",
71
- ),
72
40
  # Ingestion
73
41
  path(
74
42
  "ingestion/",
75
- views.IPFabricIngestionListView.as_view(),
76
- name="ipfabricingestion_list",
43
+ include(get_model_urls("ipfabric_netbox", "ipfabricingestion", detail=False)),
77
44
  ),
78
45
  path(
79
46
  "ingestion/<int:pk>/",
@@ -82,96 +49,45 @@ urlpatterns = (
82
49
  # Transform Map Group
83
50
  path(
84
51
  "transform-map-group/",
85
- views.IPFabricTransformMapGroupListView.as_view(),
86
- name="ipfabrictransformmapgroup_list",
87
- ),
88
- path(
89
- "transform-map-group/add",
90
- views.IPFabricTransformMapGroupEditView.as_view(),
91
- name="ipfabrictransformmapgroup_add",
92
- ),
93
- path(
94
- "transform-map-group/delete/",
95
- views.IPFabricTransformMapGroupBulkDeleteView.as_view(),
96
- name="ipfabrictransformmapgroup_bulk_delete",
52
+ include(
53
+ get_model_urls("ipfabric_netbox", "ipfabrictransformmapgroup", detail=False)
54
+ ),
97
55
  ),
98
56
  path(
99
57
  "transform-map-group/<int:pk>/",
100
58
  include(get_model_urls("ipfabric_netbox", "ipfabrictransformmapgroup")),
101
59
  ),
102
- path(
103
- "transform-map-group/<int:pk>/delete/",
104
- views.IPFabricTransformMapGroupDeleteView.as_view(),
105
- name="ipfabrictransformmapgroup_delete",
106
- ),
107
60
  # Transform Map
108
61
  path(
109
62
  "transform-map/",
110
- views.IPFabricTransformMapListView.as_view(),
111
- name="ipfabrictransformmap_list",
112
- ),
113
- path(
114
- "transform-map/restore/",
115
- views.IPFabricTransformMapRestoreView.as_view(),
116
- name="ipfabrictransformmap_restore",
117
- ),
118
- path(
119
- "transform-map/add",
120
- views.IPFabricTransformMapEditView.as_view(),
121
- name="ipfabrictransformmap_add",
122
- ),
123
- path(
124
- "transform-map/delete/",
125
- views.IPFabricTransformMapBulkDeleteView.as_view(),
126
- name="ipfabrictransformmap_bulk_delete",
63
+ include(
64
+ get_model_urls("ipfabric_netbox", "ipfabrictransformmap", detail=False)
65
+ ),
127
66
  ),
128
67
  path(
129
68
  "transform-map/<int:pk>/",
130
69
  include(get_model_urls("ipfabric_netbox", "ipfabrictransformmap")),
131
70
  ),
132
- path(
133
- "transform-map/<int:pk>/delete/",
134
- views.IPFabricTransformMapDeleteView.as_view(),
135
- name="ipfabrictransformmap_delete",
136
- ),
137
71
  # Transform field
138
72
  path(
139
73
  "transform-field/",
140
- views.IPFabricTransformFieldListView.as_view(),
141
- name="ipfabrictransformfield_list",
142
- ),
143
- path(
144
- "transform-field/add/",
145
- views.IPFabricTransformFieldEditView.as_view(),
146
- name="ipfabrictransformfield_add",
74
+ include(
75
+ get_model_urls("ipfabric_netbox", "ipfabrictransformfield", detail=False)
76
+ ),
147
77
  ),
148
78
  path(
149
79
  "transform-field/<int:pk>/",
150
80
  include(get_model_urls("ipfabric_netbox", "ipfabrictransformfield")),
151
81
  ),
152
- path(
153
- "transform-field/<int:pk>/delete/",
154
- views.IPFabricTransformFieldDeleteView.as_view(),
155
- name="ipfabrictransformfield_delete",
156
- ),
157
82
  # Relationship Field
158
83
  path(
159
84
  "relationship-field/",
160
- views.IPFabricRelationshipFieldListView.as_view(),
161
- name="ipfabricrelationshipfield_list",
162
- ),
163
- path(
164
- "relationship-field/add/",
165
- views.IPFabricRelationshipFieldEditView.as_view(),
166
- name="ipfabricrelationshipfield_add",
85
+ include(
86
+ get_model_urls("ipfabric_netbox", "ipfabricrelationshipfield", detail=False)
87
+ ),
167
88
  ),
168
89
  path(
169
90
  "relationship-field/<int:pk>/",
170
91
  include(get_model_urls("ipfabric_netbox", "ipfabricrelationshipfield")),
171
92
  ),
172
- path(
173
- "relationship-field/<int:pk>/delete/",
174
- views.IPFabricRelationshipFieldDeleteView.as_view(),
175
- name="ipfabricrelationshipfield_delete",
176
- ),
177
93
  )