change the url format for the ComputerLicenseCreateView

This commit is contained in:
Andreas Zweili 2020-06-29 12:09:43 +02:00
parent 4b6e375833
commit 273d4da42b
2 changed files with 2 additions and 2 deletions

View File

@ -17,7 +17,7 @@ def test_license_with_computer_create_view(create_admin_user):
'license': license.id,
'amount': 1
}
url = '/create/license-with/computer/{}/'.format(computer.id)
url = '/create/license-with-computer/{}/'.format(computer.id)
response = client.post(url, data)
assert response.status_code == 302

View File

@ -5,7 +5,7 @@ from . import views
urlpatterns = [
path('customer/<int:pk>/licenses/', views.licenses_table_view,
name='licenses'),
path('create/license-with/computer/<int:pk>/',
path('create/license-with-computer/<int:pk>/',
views.LicenseWithComputerCreateView.as_view(),
name='license_with_computer_create'),
path('delete/license-with-computer/<int:pk>/',