Function-based generic views provided an "extra_context" keyword argument to 
add variables to the template context.  It appears that under the initial 
implementation of class-based generic views in Django 1.3, there are two 
major differences:

1. To add extra context, you have to subclass and override 
get_context_data(); and,
2. Extra variables are added to the "params" context variable, not directly 
(so to speak) to the context.

Do I have this right?  If so, #1 seems to violate the DRY principle.  Why 
not add an "extra_context" attribute to the TemplateResponseMixin class?

Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to