svpbde / svpb

Some simple Django webapps for our sailing club
Apache License 2.0
0 stars 0 forks source link

Fix schnellzuweisung #30

Open transistortim opened 9 months ago

transistortim commented 9 months ago

schnellzuweisung is not displayed in AufgabeForm. Observable e.g. on http://127.0.0.1:8888/arbeitsplan/aufgabeErzeugen/.

I don't know of any complaints that it's missing so far --> Do we need to fix it or can it be removed?

Logged error:

WARNING:root:Could not resolve form field 'schnellzuweisung'.
Traceback (most recent call last):
  File "/home/svpb/svpb-venv/lib/python3.9/site-packages/django/forms/forms.py", line 153, in __getitem__
    field = self.fields[name]
KeyError: 'schnellzuweisung'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/svpb/svpb-venv/lib/python3.9/site-packages/crispy_forms/utils.py", line 69, in render_field
    bound_field = form[field]
  File "/home/svpb/svpb-venv/lib/python3.9/site-packages/django/forms/forms.py", line 155, in __getitem__
    raise KeyError(
KeyError: "Key 'schnellzuweisung' not found in 'AufgabeForm'. Choices are: anzahl, aufgabe, bemerkung, datum, gruppe, stunden, teamleader, verantwortlich."
transistortim commented 7 months ago

Somebody told me he misses this feature -> We should fix it