Skip to content

Commit

Permalink
fix RemoteSiteDeleteView (#880)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkonie committed Jan 8, 2024
1 parent b198123 commit 5778840
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions projectroles/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2968,21 +2968,17 @@ class RemoteSiteUpdateView(
class RemoteSiteDeleteView(
LoginRequiredMixin,
LoggedInPermissionMixin,
RemoteSiteModifyMixin,
HTTPRefererMixin,
CurrentUserFormMixin,
DeleteView,
):
"""RemoteSite deletion view"""

model = RemoteSite
form_class = RemoteSiteForm
permission_required = 'projectroles.update_remote'
slug_url_kwarg = 'remotesite'
slug_field = 'sodar_uuid'

def get_success_url(self):
"""Override get_success_url() to add message"""
timeline = get_backend_api('timeline_backend')
if timeline:
event_name = '{}_site_delete'.format(
Expand Down

0 comments on commit 5778840

Please sign in to comment.