Change about.html file

This commit is contained in:
Zhao-Linux 2022-10-04 10:33:16 +07:00
parent d0a0f86d46
commit 9438fa3e14
2 changed files with 3 additions and 1 deletions

View file

@ -153,6 +153,8 @@ class EditOrganizationForm(ModelForm):
widgets["about"] = HeavyPreviewPageDownWidget(
preview=reverse_lazy("organization_preview")
)
class AddOrganizationForm(ModelForm):
class Meta:
model = Organization

View file

@ -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
)