fix template filter to use content_object
@@ -105,7 +105,7 @@ def resource_first_author(content):
elif first_creator.name:
return format_html('<span>{name}</span>', name=first_creator.name)
else:
- first_creator = content.metadata.creators.filter(order=1).first()
+ first_creator = content.content_object.creators.filter(order=1).first()
if first_creator.name:
return format_html('<span>{name}</span>', name=first_creator.name)
if first_creator.organization:
