Commit 710e6890 authored by Luko van der Maas's avatar Luko van der Maas

Merge branch 'fix/album-urls' into 'master'

Closes #887, photo url notification is no longer relative

Closes #887

See merge request !1311
parents 80e272d4 fa70fccc
......@@ -191,7 +191,9 @@ class Album(models.Model, metaclass=ModelTranslateMeta):
'zojuist geüpload'
.format(self.title_nl))
new_album_notification.category = Category.objects.get(key='photo')
new_album_notification.url = self.get_absolute_url()
new_album_notification.url = (
f'{settings.BASE_URL}'
f'{self.get_absolute_url()}')
new_album_notification.time = new_album_notification_time
new_album_notification.save()
self.new_album_notification = new_album_notification
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment