Skip to content

Commit

Permalink
apps/academy/external link page: do not whow preview or live link in …
Browse files Browse the repository at this point in the history
…admin - fixes #267
  • Loading branch information
fuzzylogic2000 authored and Rineee committed Feb 24, 2023
1 parent f655527 commit 7ff618a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apps/academy/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,9 @@ class AcademyExternalLink(Page):
ObjectList(common_panels, heading='Common'),
])

preview_modes = []
url = None

def save(self, *args, **kwargs):
self.slug = self.id
self.title = self.title_en
Expand Down

0 comments on commit 7ff618a

Please sign in to comment.