Coverage for xplanung_light/views/bplanspezexternereferenz.py: 100%
25 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.views.xplanrelations import XPlanRelationsCreateView, XPlanRelationsListView, XPlanRelationsUpdateView, XPlanRelationsDeleteView
2from xplanung_light.models import BPlanSpezExterneReferenz, BPlan
3from django_tables2 import SingleTableView
4from xplanung_light.forms import BPlanSpezExterneReferenzForm
5from xplanung_light.tables import BPlanSpezExterneReferenzTable
8class BPlanSpezExterneReferenzCreateView(XPlanRelationsCreateView):
9 model = BPlanSpezExterneReferenz
10 reference_model = BPlan
11 form_class = BPlanSpezExterneReferenzForm
12 list_url_name = 'bplanattachment-list'
15class BPlanSpezExterneReferenzListView(XPlanRelationsListView, SingleTableView):
16 model = BPlanSpezExterneReferenz
17 reference_model = BPlan
18 table_class = BPlanSpezExterneReferenzTable
19 template_name = 'xplanung_light/bplanattachment_list.html'
20 list_url_name = 'bplanattachment-list'
23class BPlanSpezExterneReferenzUpdateView(XPlanRelationsUpdateView):
24 model = BPlanSpezExterneReferenz
25 reference_model = BPlan
26 form_class = BPlanSpezExterneReferenzForm
27 list_url_name = 'bplanattachment-list'
30class BPlanSpezExterneReferenzDeleteView(XPlanRelationsDeleteView):
31 model = BPlanSpezExterneReferenz
32 reference_model = BPlan
33 list_url_name = 'bplanattachment-list'