mirror of
https://github.com/nottinghamtec/PyRIGS.git
synced 2026-01-17 05:22:16 +00:00
Change ical to use dynamically generated URL's instead of a static base URL.
This commit is contained in:
@@ -112,8 +112,8 @@ class CalendarICS(ICalFeed):
|
||||
|
||||
def item_link(self, item):
|
||||
# Make a link to the event in the web interface
|
||||
base_url = "https://pyrigs.nottinghamtec.co.uk"
|
||||
return base_url+str(reverse_lazy('event_detail',kwargs={'pk':item.pk}))
|
||||
# base_url = "https://pyrigs.nottinghamtec.co.uk"
|
||||
return item.get_absolute_url()
|
||||
|
||||
# def item_created(self, item): #TODO - Implement created date-time (using django-reversion?) - not really necessary though
|
||||
# return ''
|
||||
|
||||
Reference in New Issue
Block a user