Skip to content
Snippets Groups Projects
Commit 97dd5863 authored by Benjamin Hättasch's avatar Benjamin Hättasch
Browse files

Fix AK wish submission

Only change appearance of owner field for normal submission but not for wishes (since they don't have owners)
parent 39343266
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,8 @@ class AKForm(forms.ModelForm):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
# Use better multiple select input for owners, conflicts and prerequisites
self.fields["owners"].widget.attrs = {'class': 'chosen-select'}
if "owners" in self.fields:
self.fields["owners"].widget.attrs = {'class': 'chosen-select'}
self.fields["conflicts"].widget.attrs = {'class': 'chosen-select'}
self.fields["prerequisites"].widget.attrs = {'class': 'chosen-select'}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment