Skip to content

Commit 8aca3f3

Browse files
committed
Merge branch 'cohost-contactdetails' into main
2 parents 27490ca + 95d4b77 commit 8aca3f3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

event_review/admin.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,16 @@ def host_format(modeladmin, event):
5252
and getattr(modeladmin, 'send_message_widget', None)):
5353
host_items.append(modeladmin.send_message_widget(event))
5454

55+
# give settings a chance to tweak/alter/add items
56+
customize_host_link = getattr(settings, 'EVENT_REVIEW_CUSTOM_HOST_DISPLAY', None)
57+
if callable(customize_host_link):
58+
host_items = customize_host_link(event, host_items)
59+
5560
# from the connector
5661
extra_html=event.extra_management_html()
5762
if extra_html:
5863
host_items.append(extra_html)
5964

60-
# give settings a chance to tweak/alter/add items
61-
customize_host_link = getattr(settings, 'EVENT_REVIEW_CUSTOM_HOST_DISPLAY', None)
62-
if callable(customize_host_link):
63-
host_items = customize_host_link(event, host_items)
6465
host_items.insert(0, ' '.join(host_line))
6566
return mark_safe(' <span class="glyphicon glyphicon-star-empty"></span>'.join(host_items))
6667

0 commit comments

Comments
 (0)