File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -136,13 +136,14 @@ def get_list_url(self):
136
136
@classmethod
137
137
def _get_viewname (cls , action = None , rest_api = False ):
138
138
if rest_api :
139
- return f"plugins-api:netbox_custom_objects: api:customobject_ { action } "
139
+ return f"plugins-api:netbox_custom_objects- api:customobject- { action } "
140
140
return f"plugins:netbox_custom_objects:customobject_{ action } "
141
141
142
142
@classmethod
143
143
def _get_action_url (cls , action = None , rest_api = False , kwargs = None ):
144
- if kwargs :
145
- kwargs ["custom_object_type" ] = cls .custom_object_type .name .lower ()
144
+ if kwargs is None :
145
+ kwargs = {}
146
+ kwargs ["custom_object_type" ] = cls .custom_object_type .name .lower ()
146
147
return reverse (cls ._get_viewname (action , rest_api ), kwargs = kwargs )
147
148
148
149
You can’t perform that action at this time.
0 commit comments