diff --git a/participation/forms.py b/participation/forms.py index 2c097d0..0ce2096 100644 --- a/participation/forms.py +++ b/participation/forms.py @@ -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'), diff --git a/participation/templates/participation/passage_detail.html b/participation/templates/participation/passage_detail.html index 603aa08..93489b2 100644 --- a/participation/templates/participation/passage_detail.html +++ b/participation/templates/participation/passage_detail.html @@ -6,7 +6,16 @@ {% trans "any" as any %}
-

{{ passage }}

+

+ {{ passage }} + {% if user.registration.is_admin or user.registration in passage.pool.tournament.organizers.all %} + + {% endif %} +

@@ -51,7 +60,6 @@ {% if my_note is not None %} {% endif %} -
{% elif user.registration.participates %}
diff --git a/participation/templates/participation/tournament_detail.html b/participation/templates/participation/tournament_detail.html index c8a3efb..e06250a 100644 --- a/participation/templates/participation/tournament_detail.html +++ b/participation/templates/participation/tournament_detail.html @@ -61,7 +61,10 @@ {% if user.registration.is_admin or user.registration in tournament.organizers.all %} {% endif %}