1from django.urls import reverse
2
3def myview(request):
4 return HttpResponseRedirect(reverse('arch-summary', args=[1945]))
5
1def get_success_url(self):
2 messages.success(self.request, 'Profile Updated Successfully')
3 return reverse('accounts:profile')
1class NewJobCBV(LoginRequiredMixin, CreateView):
2 template_name = 'company/job.html'
3 form_class = newJobForm
4 # success_url = reverse_lazy('newJob')
5
6 def get_success_url(self, **kwargs):
7 return reverse("newJob")
8