Re: included generic views and passing extra options

2006-12-18 Thread catklok
ok. my extremely hackish fix was to add this to the included module's url section. is there a better way to do this? def add_context(context): if(isinstance(context, dict)): for key in context: info_dict['extra_context'][key] = context[key] --~--~-~--~~-

Re: included generic views and passing extra options

2006-12-18 Thread catklok
Just a minor revision to the bottom example > -- project which uses module_foo > > urlpatterns = (r'^admin/', include('module_foo'), > {'extra_context' : {'foo2' : expression}}),) --~--~-~--~~~---~--~~ You received this message because you are sub

included generic views and passing extra options

2006-12-18 Thread catklok
Perhaps I'm missing something in the documentation, but is this not possible with generic views? Here's an example below. --included module_foo info_dict = { 'extra_context': {'some_var1': expression} } urlpatterns = patterns('django.views.generic.list_detail', (r'^$', 'object_list', dic