1
0
mirror of https://gitlab.crans.org/bde/nk20 synced 2025-06-21 01:48:21 +02:00

Club members autocomplete

This commit is contained in:
Yohann D'ANELLO
2020-02-08 20:39:37 +01:00
parent 7bafc89713
commit ce012400e1
4 changed files with 28 additions and 2 deletions

View File

@ -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 ...',