Can set a parent club to None

This commit is contained in:
Yohann D'ANELLO 2020-10-07 09:48:21 +02:00
parent 18a8ff1b8a
commit 992cfe8e23
1 changed files with 1 additions and 0 deletions

View File

@ -150,6 +150,7 @@ class ClubForm(forms.ModelForm):
"membership_fee_unpaid": AmountInput(), "membership_fee_unpaid": AmountInput(),
"parent_club": Autocomplete( "parent_club": Autocomplete(
Club, Club,
resetable=True,
attrs={ attrs={
'api_url': '/api/members/club/', 'api_url': '/api/members/club/',
} }