Complete dashboard loose ends and reconcile blocked pilot work
All checks were successful
All checks were successful
Assistant: codex Assistant-Model: gpt-6-astra Assistant-Session: 01a0e394-2a69-7df0-8980-22a0ebe55216
This commit is contained in:
parent
387b7e9782
commit
35df9bb772
13 changed files with 325 additions and 55 deletions
|
|
@ -38,6 +38,13 @@ class AusschreibungForm(forms.ModelForm):
|
|||
'entscheidungsbegruendung': forms.Textarea(attrs={'class': 'form-input', 'rows': 3}),
|
||||
}
|
||||
|
||||
def __init__(self, *args, **kwargs):
|
||||
def __init__(self, *args, historisch=False, **kwargs):
|
||||
super().__init__(*args, **kwargs)
|
||||
self.fields['teilnahmeentscheidung'].required = False
|
||||
if historisch:
|
||||
from vergabe_teilnahme.apps.nachbetrachtung.models import Nachbetrachtung
|
||||
|
||||
self.fields['ergebnis'] = forms.ChoiceField(
|
||||
choices=Nachbetrachtung.ERGEBNIS_CHOICES, initial='offen',
|
||||
widget=forms.Select(attrs={'class': 'form-input'}),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue