1from django.shortcuts import reverse
2OR
3from django.urls import reverse,reverse_lazy
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