Skip to content

Commit eb71a34

Browse files
committed
added request context to contact form content model in thanks case
1 parent 453db9f commit eb71a34

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

feincms/content/contactform/models.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ def initialize_type(cls, form=None):
4141

4242
def process(self, request, **kwargs):
4343
if request.GET.get('_cf_thanks'):
44-
self.rendered_output = render_to_string('content/contactform/thanks.html')
44+
self.rendered_output = render_to_string('content/contactform/thanks.html',
45+
context_instance=RequestContext(request))
4546
return
4647

4748
if request.method == 'POST':

0 commit comments

Comments
 (0)