Change about.html file
This commit is contained in:
parent
d0a0f86d46
commit
9438fa3e14
2 changed files with 3 additions and 1 deletions
|
@ -153,6 +153,8 @@ class EditOrganizationForm(ModelForm):
|
|||
widgets["about"] = HeavyPreviewPageDownWidget(
|
||||
preview=reverse_lazy("organization_preview")
|
||||
)
|
||||
|
||||
|
||||
class AddOrganizationForm(ModelForm):
|
||||
class Meta:
|
||||
model = Organization
|
||||
|
|
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue