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( widgets["about"] = HeavyPreviewPageDownWidget(
preview=reverse_lazy("organization_preview") preview=reverse_lazy("organization_preview")
) )
class AddOrganizationForm(ModelForm): class AddOrganizationForm(ModelForm):
class Meta: class Meta:
model = Organization model = Organization

View file

@ -390,7 +390,7 @@ class OrganizationContestMixin(
): ):
model = Contest 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( return request.profile in contest.authors.all() or self.can_edit_organization(
self.organization self.organization
) )