From 9438fa3e148848db2accddc7be0d0c2e5740f09e Mon Sep 17 00:00:00 2001 From: Zhao-Linux Date: Tue, 4 Oct 2022 10:33:16 +0700 Subject: [PATCH] Change about.html file --- judge/forms.py | 2 ++ judge/views/organization.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/judge/forms.py b/judge/forms.py index 396315d..f155d49 100644 --- a/judge/forms.py +++ b/judge/forms.py @@ -153,6 +153,8 @@ class EditOrganizationForm(ModelForm): widgets["about"] = HeavyPreviewPageDownWidget( preview=reverse_lazy("organization_preview") ) + + class AddOrganizationForm(ModelForm): class Meta: model = Organization diff --git a/judge/views/organization.py b/judge/views/organization.py index da99a7d..0414516 100644 --- a/judge/views/organization.py +++ b/judge/views/organization.py @@ -390,7 +390,7 @@ class OrganizationContestMixin( ): model = Contest - def is_contest_able(self, request, contest): + def is_contest_editable(self, request, contest): return request.profile in contest.authors.all() or self.can_edit_organization( self.organization )