#18803: Django FormWizard.as_view condition_dict callable called multiple times? -------------------------------------+------------------------------------- Reporter: mikewatsup@… | Owner: nobody Type: Bug | Status: new Component: contrib.formtools | Version: 1.4 Severity: Release blocker | Resolution: Keywords: form wizard, | Triage Stage: as_view, condition_dict argument | Unreviewed Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+------------------------------------- Changes (by lrekucki):
* needs_better_patch: => 0 * needs_tests: => 0 * needs_docs: => 0 Comment: This isn't a bug. The wizard doesn't make any guarantees about calling the conditions only once. On the contrary, the whole point of having a callable is being able to dynamically adjust the list of forms based on validation results (so the form_list will differ between validation and rendering). PS. The {{{as_view()}}} method is intended to be called only once per life of application (usually in {{{urls.py}}}), not on every request. While it's not an error to do so, it's a bit inefficient. -- Ticket URL: <https://code.djangoproject.com/ticket/18803#comment:1> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To post to this group, send email to django-updates@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.