-# This file is part of Wolnelektury, licensed under GNU Affero GPLv3 or later.
-# Copyright © Fundacja Nowoczesna Polska. See NOTICE for more information.
+# This file is part of Wolne Lektury, licensed under GNU Affero GPLv3 or later.
+# Copyright © Fundacja Wolne Lektury. See NOTICE for more information.
#
from django.shortcuts import render, get_object_or_404, redirect
from django.http import HttpResponseForbidden, JsonResponse
@login_required
def my_shelf(request):
- template_name = 'social/2022/my_shelf.html'
+ template_name = 'social/my_shelf.html'
tags = list(request.user.tag_set.all())
suggest = [t for t in tags if t.name]
print(suggest)