# Refactoring payment view

* refactors views for adding, editing and removing payments
This commit is contained in:
2025-11-04 09:09:05 +01:00
parent 4a16727da1
commit bc2e901ca9
3 changed files with 31 additions and 74 deletions

View File

@@ -6,11 +6,11 @@ Created on: 24.08.21
"""
from django.urls import path
from compensation.views.payment import *
from compensation.views.payment import NewPaymentView, RemovePaymentView, EditPaymentView
app_name = "pay"
urlpatterns = [
path('<id>/new', new_payment_view, name='new'),
path('<id>/remove/<payment_id>', payment_remove_view, name='remove'),
path('<id>/edit/<payment_id>', payment_edit_view, name='edit'),
path('<id>/new', NewPaymentView.as_view(), name='new'),
path('<id>/remove/<payment_id>', RemovePaymentView.as_view(), name='remove'),
path('<id>/edit/<payment_id>', EditPaymentView.as_view(), name='edit'),
]