From fef7da70e84356ddd2e8c134f05ed8c2e94715f0 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 6 Jul 2022 20:11:02 -0400 Subject: [PATCH] fix 500 --- collection/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/collection/views.py b/collection/views.py index d47d7be5..31db04dd 100644 --- a/collection/views.py +++ b/collection/views.py @@ -164,7 +164,7 @@ def retrieve(request, id): { 'collection': collection, 'form': form, - 'editable': collection.is_editable_by(request.user), + 'editable': request.user.is_authenticated and collection.is_editable_by(request.user), 'followers': followers, 'following': following, }