diff options
Diffstat (limited to 'ishtar_common')
-rw-r--r-- | ishtar_common/models.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 5e81e80a0..9b5185be4 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -1945,6 +1945,12 @@ class BaseHistorizedItem(DocumentItem, FullSearch, Imported, JsonData, values[k] = getattr(self, k) return values + def get_absolute_url(self): + try: + return reverse('display-item', args=[self.SLUG, self.pk]) + except NoReverseMatch: + return + def get_show_url(self): show_url = self.SHOW_URL if not show_url: |