Skip to content

Commit

Permalink
Use URL as GUID
Browse files Browse the repository at this point in the history
This makes changing URL links less of a pain
  • Loading branch information
RealOrangeOne committed Sep 6, 2023
1 parent 36749ce commit 9d891cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions website/common/views.py
Expand Up @@ -99,6 +99,9 @@ def items(self) -> PageQuerySet:
.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

Expand Down

0 comments on commit 9d891cd

Please sign in to comment.