예제 #1
0
 def get_send_test_email_url(self):
     return get_permalink('email-notification-send-test', self.pk)
예제 #2
0
 def get_update_url(self):
     return get_permalink('server-update', self.pk)
예제 #3
0
 def get_update_url(self):
     return get_permalink('email-notification-update', self.pk)
예제 #4
0
 def get_delete_url(self):
     return get_permalink('email-notification-delete', self.pk)
예제 #5
0
 def get_context_data(self, **kwargs):
     context = super(ServerUpdateView, self).get_context_data(**kwargs)
     context['submit_url'] = get_permalink('server-update', self.kwargs['pk'])
     return context
예제 #6
0
 def get_update_url(self):
     return get_permalink('notification-settings-update', self.pk)
예제 #7
0
 def get_success_url(self):
     return get_permalink('server-list')
예제 #8
0
 def get_context_data(self, **kwargs):
     context = super(EmailNotificationUpdateView, self).get_context_data(**kwargs)
     context['submit_url'] = get_permalink('email-notification-update', self.kwargs['pk'])
     return context
예제 #9
0
 def get_success_url(self):
     return get_permalink('configuration-main')
예제 #10
0
 def get_context_data(self, **kwargs):
     context = super(EmailNotificationCreateView, self).get_context_data(**kwargs)
     context['submit_url'] = get_permalink('email-notification-create')
     return context
예제 #11
0
 def get_context_data(self, **kwargs):
     context = super(NotificationSettingsUpdateView, self).get_context_data(**kwargs)
     context['submit_url'] = get_permalink('notification-settings-update', self.kwargs['pk'])
     return context