# Index Compensation refactoring

* refactors index view for compensations
This commit is contained in:
2025-10-15 16:03:53 +02:00
parent aec10ee0af
commit 17d817bbe1
2 changed files with 16 additions and 32 deletions

View File

@@ -17,13 +17,13 @@ from compensation.views.compensation.action import NewCompensationActionView, Ed
RemoveCompensationActionView
from compensation.views.compensation.state import NewCompensationStateView, EditCompensationStateView, \
RemoveCompensationStateView
from compensation.views.compensation.compensation import index_view, new_view, new_id_view, detail_view, edit_view, \
remove_view
from compensation.views.compensation.compensation import new_view, new_id_view, detail_view, edit_view, \
remove_view, CompensationIndexView
from compensation.views.compensation.log import CompensationLogView
urlpatterns = [
# Main compensation
path("", index_view, name="index"),
path("", CompensationIndexView.as_view(), name="index"),
path('new/id', new_id_view, name='new-id'),
path('new/<intervention_id>', new_view, name='new'),
path('new', new_view, name='new'),