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 )