Club members autocomplete
This commit is contained in:
parent
7bafc89713
commit
ce012400e1
4 changed files with 28 additions and 2 deletions
|
|
@ -24,6 +24,11 @@ class TransactionForm(forms.ModelForm):
|
|||
fields = ('destination', 'reason', 'amount',)
|
||||
|
||||
widgets = {
|
||||
'source': autocomplete.ModelSelect2(url='note:note_autocomplete',
|
||||
attrs={
|
||||
'data-placeholder': 'Note ...',
|
||||
'data-minimum-input-length': 1,
|
||||
}),
|
||||
'destination': autocomplete.ModelSelect2(url='note:note_autocomplete',
|
||||
attrs={
|
||||
'data-placeholder': 'Note ...',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue