📜  在 django 中导入 reverse_lazy 的位置 - Python 代码示例

📅  最后修改于: 2022-03-11 14:47:12.137000             🧑  作者: Mango

代码示例2
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")