summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--archaeological_finds/models.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/archaeological_finds/models.py b/archaeological_finds/models.py
index 969e9b966..fcbeb2d25 100644
--- a/archaeological_finds/models.py
+++ b/archaeological_finds/models.py
@@ -634,7 +634,9 @@ class Find(BaseHistorizedItem, ImageModel, OwnPerms, ShortMenuItem):
owns = super(Find, cls).get_owns(
user, replace_query=replace_query,
limit=limit)
- return sorted(owns, key=lambda x: x.cached_label)
+ return sorted(
+ owns, key=lambda x: x.cached_label
+ if hasattr(x, 'cached_label') else unicode(x))
def _generate_cached_label(self):
return unicode(self)