Skip to content

Commit

Permalink
Ajoute get_absolute_url() à PublishedContent (zestedesavoir#6519)
Browse files Browse the repository at this point in the history
Pour faire fonctionner le lien "Voir sur le site" dans la zone d'administration.
  • Loading branch information
philippemilink authored and Migwel committed Sep 12, 2023
1 parent 7c158f7 commit c1a749b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions zds/tutorialv2/models/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,13 @@ def get_absolute_url_zip(self):

return self.get_absolute_url_to_extra_content("zip")

def get_absolute_url(self):
"""For admin interface.
get_absolute_url_online() should probably be directly used in other cases.
"""

return self.get_absolute_url_online()

def get_char_count(self, md_file_path=None):
"""Compute the number of letters for a given content
Expand Down

0 comments on commit c1a749b

Please sign in to comment.