Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

django reverse lazy

class NewJobCBV(LoginRequiredMixin, CreateView):
    template_name = 'company/job.html'
    form_class = newJobForm
    # success_url = reverse_lazy('newJob')

    def get_success_url(self, **kwargs):
        return reverse("newJob")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #django #reverse #lazy
ADD COMMENT
Topic
Name
5+6 =