Skip to content

Commit

Permalink
object references
Browse files Browse the repository at this point in the history
  • Loading branch information
gromdimon committed Apr 24, 2023
1 parent db58b42 commit 1e613bd
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions projectroles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2919,9 +2919,10 @@ def create_timeline_event(
else:
event_name = 'target_site_{}'.format(status)

tl_desc = '{} remote {} site "{{remote_site}}"'.format(
tl_desc = '{} remote {} site "{{{}}}"'.format(
status,
remote_site.mode.lower(),
'remote_site',
)
tl_event = timeline.add_event(
project=None,
Expand Down Expand Up @@ -3013,7 +3014,7 @@ def get_success_url(self):
event_name = '{}_site_delete'.format(
'source' if self.object.mode == SITE_MODE_SOURCE else 'target'
)
tl_desc = 'delete remote site "{{remote_site}}"'
tl_desc = 'delete remote site "{remote_site}"'
tl_event = timeline.add_event(
project=None,
app_name=APP_NAME,
Expand Down Expand Up @@ -3183,8 +3184,9 @@ def post(self, request, *args, **kwargs):
)

if timeline and project:
tl_desc = 'update remote access for site {{remote_site}} to "{}"'.format(
tl_desc = 'update remote access for site {{{}}} to "{}"'.format(
SODAR_CONSTANTS['REMOTE_ACCESS_LEVELS'][v].lower(),
'remote_site',
)
tl_event = timeline.add_event(
project=project,
Expand All @@ -3198,7 +3200,7 @@ def post(self, request, *args, **kwargs):
tl_event.add_object(site, 'remote_site', site.name)

if timeline:
tl_desc = 'update remote site "{{remote_site}}"'
tl_desc = 'update remote site "{remote_site}"'
tl_event = timeline.add_event(
project=None,
app_name=APP_NAME,
Expand Down Expand Up @@ -3345,7 +3347,7 @@ def get(self, request, *args, **kwargs):

# Create timeline events for projects
if timeline:
tl_desc = 'synchronize remote site "{{remote_site}}"'
tl_desc = 'synchronize remote site "{remote_site}"'
tl_event = timeline.add_event(
project=None,
app_name=APP_NAME,
Expand Down

0 comments on commit 1e613bd

Please sign in to comment.