mirror of
https://github.com/Labelbase/Labelbase.git
synced 2026-08-17 13:07:28 +02:00
.
This commit is contained in:
parent
2142862c99
commit
75525aa635
1 changed files with 2 additions and 1 deletions
|
|
@ -15,7 +15,8 @@ class LabelForm(forms.ModelForm):
|
|||
self.fields['labelbase'] = forms.ModelChoiceField(
|
||||
queryset=user_labelbases,
|
||||
required=True,
|
||||
widget=forms.Select(attrs={'class': 'chzn-select'}),
|
||||
#widget=forms.Select(attrs={'class': 'chzn-select'}),
|
||||
widget = forms.HiddenInput(),
|
||||
)
|
||||
if user_labelbases.count() == 1:
|
||||
self.fields['labelbase'].initial = user_labelbases[0]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue