Задать вопрос

Тел: +7 965 3737 888

461

Просмотров

1

Ответов

Using reverse with success_url in class based generic views

<p>If you did tried to use reverse function to set success_url in class based generic views and you have got an exception, this helper function may help.</p>
<p>Put this snipped in some file, for example utils.py and import this function.</p>

Вопрос полезен? Да0/Нет0
file_5189.py(297.0б)
None

Ответы (1):

Ответhaplo:13.11.2011
Ответ полезен? Да0/Нет0

Until Django 1.4 is released and reverse_lazy is included in Django, this snippet does the trick.