Skip to content

Commit

Permalink
Ajoute get_absolute_url() à PublishedContent (#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 Aug 26, 2023
1 parent aaacd06 commit 7c69e47
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 7c69e47

Please sign in to comment.