Closes #887, photo url notification is no longer relative

parent 422cd6e0
......@@ -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