Coverage for xplanung_light/views/fplanuvp.py: 100%
32 statements
« prev ^ index » next coverage.py v7.17.5, created at 2026-11-27 10:10 +0000
« prev ^ index » next coverage.py v7.17.5, created at 2026-11-27 10:10 +0000
1from xplanung_light.forms import FPlanUvpForm
2from xplanung_light.views.xplanrelations import XPlanRelationsCreateView, XPlanRelationsListView, XPlanRelationsUpdateView, XPlanRelationsDeleteView
3from xplanung_light.models import FPlanUvp, FPlan
4from django_tables2 import SingleTableView
5from xplanung_light.tables import FPlanUvpTable
8"""
9Klassen zur Verwaltung von Umweltverträglihkeitsprüfungen
10"""
11class FPlanUvpCreateView(XPlanRelationsCreateView):
12 model = FPlanUvp
13 reference_model = FPlan
14 reference_model_name_lower = 'fplan'
15 form_class = FPlanUvpForm
16 template_name = 'xplanung_light/fplan_uvp_form.html'
17 list_url_name = 'fplan-uvp-list'
20class FPlanUvpListView(XPlanRelationsListView, SingleTableView):
21 model = FPlanUvp
22 reference_model = FPlan
23 reference_model_name_lower = 'fplan'
24 table_class = FPlanUvpTable
25 template_name = 'xplanung_light/fplan_uvp_list.html'
26 list_url_name = 'fplan-uvp-list'
29class FPlanUvpUpdateView(XPlanRelationsUpdateView):
30 model = FPlanUvp
31 reference_model = FPlan
32 reference_model_name_lower = 'fplan'
33 form_class = FPlanUvpForm
34 template_name = 'xplanung_light/fplan_uvp_form.html'
35 list_url_name = 'fplan-uvp-list'
38class FPlanUvpDeleteView(XPlanRelationsDeleteView):
39 model = FPlanUvp
40 reference_model = FPlan
41 reference_model_name_lower = 'fplan'
42 list_url_name = 'fplan-uvp-list'