feat(core): Update url basename

ref: #804 #802
This commit is contained in:
2025-06-07 19:39:49 +09:30
parent 90fc516722
commit 496c5d57ac
4 changed files with 4 additions and 4 deletions

View File

@ -26,7 +26,7 @@ class DeviceSoftwareBaseSerializer(serializers.ModelSerializer):
url = serializers.HyperlinkedIdentityField(
view_name="v2:_api_v2_device_software-detail", format="html"
view_name="v2:_api_devicesoftware-detail", format="html"
)

View File

@ -25,7 +25,7 @@ class ViewSetBase:
app_namespace = 'v2'
url_name = '_api_v2_device_software'
url_name = '_api_devicesoftware'
change_data = {'name': 'device-change'}

View File

@ -111,7 +111,7 @@ class DeviceSoftwareAPI(
)
client = Client()
url = reverse('v2:_api_v2_device_software-detail', kwargs=self.url_view_kwargs)
url = reverse('v2:_api_devicesoftware-detail', kwargs=self.url_view_kwargs)
client.force_login(self.view_user)

View File

@ -16,7 +16,7 @@ class DeviceSoftwareViewsetList(
viewset = ViewSet
route_name = 'v2:_api_v2_device_software'
route_name = 'v2:_api_devicesoftware'
@classmethod