Re: using queryset and extra_context

2007-12-30 Thread SmileyChris
On Dec 30, 3:43 am, Florian Lindner <[EMAIL PROTECTED]> wrote: > My problem is that I want to pass the info_dict to the generic view > and the CommentForm as extra_context. > > How can I do this? I think I somehow mix up the dictionaries Try this: dict(info_dict, extra_context={'CommentForm'

using queryset and extra_context

2007-12-29 Thread Florian Lindner
Hello, I have this urls.py: info_dict = { "queryset": Entry.objects.all().order_by("- creationDate"), } urlpatterns = patterns("", (r'^(?P\d+)/$', 'django.views.generic.list_detail.object_detail', { info_dict, 'extra_context':{'CommentForm':CommentForm} } ) My problem is that I want