change the url format for the ComputerLicenseCreateView
This commit is contained in:
parent
4b6e375833
commit
273d4da42b
|
@ -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
|
||||
|
||||
|
|
|
@ -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>/',
|
||||
|
|
Loading…
Reference in New Issue