Coverage for xplanung_light/views/uvp.py: 100%
26 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 UvpForm
2from xplanung_light.views.xplanrelations import XPlanRelationsCreateView, XPlanRelationsListView, XPlanRelationsUpdateView, XPlanRelationsDeleteView
3from xplanung_light.models import Uvp, BPlan
4from django_tables2 import SingleTableView
5from xplanung_light.tables import UvpTable
8"""
9Klassen zur Verwaltung von Umweltverträglihkeitsprüfungen
10"""
11class UvpCreateView(XPlanRelationsCreateView):
12 model = Uvp
13 reference_model = BPlan
14 form_class = UvpForm
15 list_url_name = 'uvp-list'
18class UvpListView(XPlanRelationsListView, SingleTableView):
19 model = Uvp
20 reference_model = BPlan
21 table_class = UvpTable
22 template_name = 'xplanung_light/uvp_list.html'
23 list_url_name = 'uvp-list'
26class UvpUpdateView(XPlanRelationsUpdateView):
27 model = Uvp
28 reference_model = BPlan
29 form_class = UvpForm
30 list_url_name = 'uvp-list'
33class UvpDeleteView(XPlanRelationsDeleteView):
34 model = Uvp
35 reference_model = BPlan
36 list_url_name = 'uvp-list'