#19433: Allow declaration form_list and condition_dict in WizzardView subclass, 
not
as params to as_view
--------------------------------------+------------------------------------
     Reporter:  migajek               |      Owner:  nobody
         Type:  Cleanup/optimization  |     Status:  new
    Component:  contrib.formtools     |    Version:  1.4
     Severity:  Normal                |   Keywords:  cbv wizzard
 Triage Stage:  Unreviewed            |  wizzardview
Easy pickings:  0                     |  Has patch:  0
                                      |      UI/UX:  0
--------------------------------------+------------------------------------
 Hi,
 every standard django CBV allows for declaring some attributesin the
 subclass to avoid passing them to as_view function in urls.py module.
 Unfortunately this does not apply to WizzardView, which does not allow a
 declaration of form_list nor condition_dict in a WizzardView subclass -
 each of these must be passed as an argument to as_view function.

 Since we need to subclass the view anyway (to define form processing
 function) AND the condition_dict contains a view logics, I believe the
 proper place for those attributes would be views.py - WizardView subclass,
 NOT urls.py - as_view params.

 example code provided here http://stackoverflow.com/q/13669033/146248

-- 
Ticket URL: <https://code.djangoproject.com/ticket/19433>
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.


Reply via email to