summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/models.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 43c18828c..9c972f68c 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -386,6 +386,8 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
@classmethod
def get_owns(cls, user):
+ if user.is_anonymous():
+ return FindBasket.objects.none()
return FindBasket.objects.filter(user=user)
def get_first_base_find(self):