Changes in referenz entry field
All checks were successful
Build containers when image tags change / build-if-image-changed (., web, containers, main container, git.baumann.gr/adebaumann/vui) (push) Successful in 31s
Build containers when image tags change / build-if-image-changed (data-loader, loader, initContainers, init-container, git.baumann.gr/adebaumann/vui-data-loader) (push) Successful in 8s

This commit is contained in:
2026-02-12 15:40:21 +01:00
parent bae8c71028
commit f7a20648b2
6 changed files with 26 additions and 11 deletions

View File

@@ -2,11 +2,9 @@ from django.contrib import admin
from django import forms
from django.utils.safestring import mark_safe
from mptt.forms import TreeNodeMultipleChoiceField
from nested_admin import NestedStackedInline, NestedModelAdmin, NestedTabularInline
from .models import *
from stichworte.models import Stichwort, Stichworterklaerung
from referenzen.models import Referenz
@@ -87,12 +85,10 @@ class EinleitungInline(NestedStackedInline):
)
class VorgabeForm(forms.ModelForm):
referenzen = TreeNodeMultipleChoiceField(queryset=Referenz.objects.all(), required=False)
class Meta:
model = Vorgabe
fields = '__all__'
def clean_thema(self):
"""Validate that thema is provided."""
thema = self.cleaned_data.get('thema')