#17795: kwargs not passed on by django.views.generic.edit import ProcessFormView
-------------------------------------+-------------------------------------
     Reporter:  ed.crewe@…           |                    Owner:  Fandekasp
         Type:                       |                   Status:  new
  Cleanup/optimization               |                  Version:
    Component:  Generic views        |  1.4-beta-1
     Severity:  Normal               |               Resolution:
     Keywords:                       |             Triage Stage:  Accepted
    Has patch:  1                    |      Needs documentation:  0
  Needs tests:  0                    |  Patch needs improvement:  1
Easy pickings:  1                    |                    UI/UX:  0
-------------------------------------+-------------------------------------

Comment (by anonymous):

 Hi,

 I have attached a file with the monkey patches I am using of class views -
 and an example decorator that demonstrates the issue.

 So why it is desirable for get_context_data to include the views object(s)
 in the kwargs it is passed - rather than just getting them from the view
 attributes, ie. self.object - so that standard decorators for the context
 data method can be used which need access to a views object(s) or possibly
 other attributes.

 In this case an object permissions test decorator.

 Thanks,
 Ed

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17795#comment:8>
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 this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to