Prevent checking in to cancelled events and dry hires

Will close #539
This commit is contained in:
2023-05-22 11:19:08 +01:00
parent 90ae87b1b2
commit a3458cea3d
6 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ for app in [apps.get_app_config(label) for label in ("RIGS", "assets", "training
else:
urlpatterns += [
path(f'{appname}/{modelname}/<str:pk>/history/',
permission_required_with_403('{app.label}.change_{modelname}')(
permission_required_with_403(f'{app.label}.change_{modelname}')(
views.VersionHistory.as_view()),
name=f'{modelname}_history', kwargs={'model': model, 'app': appname, }),
]