Re: newforms: Need ability to pass a RequestContext to FormPreview

2006-12-29 Thread Adrian Holovaty
On 12/29/06, Vadim Macagon <[EMAIL PROTECTED]> wrote: Dang, just noticed you forgot to add this to preview.py: from django.template.context import RequestContext I'd make a patch but it'll probably take you longer to apply it than copy/paste this line in :) Whoops! Sorry about that. It's fix

Re: newforms: Need ability to pass a RequestContext to FormPreview

2006-12-29 Thread Vadim Macagon
Adrian Holovaty wrote: In [4259], I changed FormPreview to use RequestContext by default. Thanks for the report! Dang, just noticed you forgot to add this to preview.py: from django.template.context import RequestContext I'd make a patch but it'll probably take you longer to apply it than

Re: newforms: Need ability to pass a RequestContext to FormPreview

2006-12-29 Thread Vadim Macagon
Adrian Holovaty wrote: In [4259], I changed FormPreview to use RequestContext by default. Thanks for the report! That will suit me just fine :) Thanks, -+ enlight +- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

Re: newforms: Need ability to pass a RequestContext to FormPreview

2006-12-29 Thread Adrian Holovaty
On 12/29/06, Vadim Macagon <[EMAIL PROTECTED]> wrote: I'm trying to use FormPreview in the formtools module, however it only passes a regular Context to templates, whereas my templates rely on a RequestContext. In [4259], I changed FormPreview to use RequestContext by default. Thanks for the r

newforms: Need ability to pass a RequestContext to FormPreview

2006-12-28 Thread Vadim Macagon
Hi, I'm trying to use FormPreview in the formtools module, however it only passes a regular Context to templates, whereas my templates rely on a RequestContext. I've made some changes to accommodate my templates, more info and a diff can be found here: http://code.djangoproject.com/ticket/3