From 9d891cd101f60dd35a3feb7b6bcabd5771c23533 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 6 Sep 2023 13:41:13 +0100 Subject: [PATCH] Use URL as GUID This makes changing URL links less of a pain --- website/common/views.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/website/common/views.py b/website/common/views.py index 9cac06c..65e9d9e 100644 --- a/website/common/views.py +++ b/website/common/views.py @@ -99,6 +99,9 @@ class AllPagesFeed(Feed): .order_by("-last_published_at") ) + def item_guid(self, item: BasePage) -> str: + return item.get_full_url(request=self.request) + def item_title(self, item: BasePage) -> str: return item.title