We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e57fdc0 commit 10d2773Copy full SHA for 10d2773
geonode/base/fields.py
@@ -25,4 +25,5 @@ def label_from_instance(self, obj):
25
# Note: Not using .get() because filter()[0] is used in original
26
# code. The hard-coded language is currently used throughout
27
# geonode.
28
- return obj.keyword.first().label
+ first_keyword = obj.keyword.first()
29
+ return first_keyword.label if first_keyword else ""
0 commit comments