1
0
mirror of https://gitlab.com/animath/si/plateforme.git synced 2025-06-22 11:58:24 +02:00

Improve edit buttons

Signed-off-by: Emmy D'Anello <emmy.danello@animath.fr>
This commit is contained in:
Emmy D'Anello
2024-03-31 21:36:09 +02:00
parent 37b86d4ea0
commit 9092cf1846
4 changed files with 24 additions and 13 deletions

View File

@ -128,7 +128,7 @@ class ValidateParticipationForm(forms.Form):
class TournamentForm(forms.ModelForm):
class Meta:
model = Tournament
fields = '__all__'
exclude = ('notes_sheet_id', )
widgets = {
'date_start': forms.DateInput(attrs={'type': 'date'}, format='%Y-%m-%d'),
'date_end': forms.DateInput(attrs={'type': 'date'}, format='%Y-%m-%d'),