Refactoring

* create package from compensation/urls
* renames modules inside of compensation/urls and compensation/views
This commit is contained in:
mpeltriaux 2021-11-16 09:02:44 +01:00
parent 899bd28247
commit fd8ce4b2ec
9 changed files with 18 additions and 10 deletions

View File

@ -0,0 +1,8 @@
"""
Author: Michel Peltriaux
Organization: Struktur- und Genehmigungsdirektion Nord, Rhineland-Palatinate, Germany
Contact: michel.peltriaux@sgdnord.rlp.de
Created on: 16.11.21
"""
from .urls import *

View File

@ -6,7 +6,7 @@ Created on: 24.08.21
""" """
from django.urls import path from django.urls import path
from compensation.views import * from compensation.views.compensation import *
urlpatterns = [ urlpatterns = [
# Main compensation # Main compensation

View File

@ -6,7 +6,7 @@ Created on: 24.08.21
""" """
from django.urls import path from django.urls import path
from compensation.views import * from compensation.views.eco_account import *
urlpatterns = [ urlpatterns = [
path("", index_view, name="acc-index"), path("", index_view, name="acc-index"),

View File

@ -6,7 +6,7 @@ Created on: 24.08.21
""" """
from django.urls import path from django.urls import path
from compensation.views import * from compensation.views.payment import *
urlpatterns = [ urlpatterns = [
path('<intervention_id>/new', new_payment_view, name='pay-new'), path('<intervention_id>/new', new_payment_view, name='pay-new'),

View File

@ -9,7 +9,7 @@ from django.urls import path, include
app_name = "compensation" app_name = "compensation"
urlpatterns = [ urlpatterns = [
path("", include("compensation.comp_urls")), path("", include("compensation.urls.compensation")),
path("acc/", include("compensation.account_urls")), path("acc/", include("compensation.urls.eco_account")),
path("pay/", include("compensation.payment_urls")), path("pay/", include("compensation.urls.payment")),
] ]

View File

@ -5,6 +5,6 @@ Contact: michel.peltriaux@sgdnord.rlp.de
Created on: 16.11.21 Created on: 16.11.21
""" """
from .compensation_views import * from .compensation import *
from .eco_account_views import * from .eco_account import *
from .payment_views import * from .payment import *

View File

@ -12,7 +12,7 @@ from compensation.tables import CompensationTable
from intervention.models import Intervention from intervention.models import Intervention
from konova.contexts import BaseContext from konova.contexts import BaseContext
from konova.decorators import * from konova.decorators import *
from konova.forms import RemoveModalForm, SimpleGeomForm, NewDocumentForm from konova.forms import RemoveModalForm, SimpleGeomForm
from konova.utils.documents import get_document, remove_document from konova.utils.documents import get_document, remove_document
from konova.utils.generators import generate_qr_code from konova.utils.generators import generate_qr_code
from konova.utils.message_templates import FORM_INVALID, IDENTIFIER_REPLACED, DATA_UNSHARED_EXPLANATION from konova.utils.message_templates import FORM_INVALID, IDENTIFIER_REPLACED, DATA_UNSHARED_EXPLANATION