Answers for "where to import reverse_lazy in django"

0

where to import reverse_lazy in django

from django.shortcuts import reverse 
OR
from django.urls import reverse,reverse_lazy
Posted by: Guest on August-12-2021
-1

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")
Posted by: Guest on November-12-2020

Code answers related to "where to import reverse_lazy in django"

Python Answers by Framework

Browse Popular Code Answers by Language