Export to GitHub

django-contact-form - issue #7

The template contact_form_subject.txt is not used


Posted on Mar 8, 2008 by Helpful Elephant

The template contact_form_subject.txt referenced in the documentation (both forms.txt and overview.txt) is not used in the generation of the subject header.

Comment #1

Posted on Mar 11, 2008 by Helpful Elephant

Proposed solution, taken from http://code.google.com/p/django-registration/

Attachments

Comment #2

Posted on Mar 19, 2008 by Massive Wombat

This is easy to address with subclassing, but the documentation is inconsistent. It also seems logical to handle subjects in the same way as the message itself. Here's an alternative patch that does that (the main difference from the previous patch is that cleaned_data is available for use in the subject template).

Attachments

Comment #3

Posted on Mar 31, 2008 by Massive Wombat

Improvement on the previous patch: also strips newlines from the subject template.

Attachments

Comment #4

Posted on Apr 2, 2008 by Happy Panda

I've applied this patch and it worked fine for me.

Comment #5

Posted on Jun 27, 2008 by Happy Hippo

This was fixed a while back.

Status: Fixed

Labels:
Type-Defect Priority-Medium