From 820e41645dd2ed482850e260eab1f0ff138eb8b4 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Tue, 22 Apr 2014 11:10:14 +0200 Subject: [PATCH] Fix contact form bug. --- contact/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contact/forms.py b/contact/forms.py index 4199dd7..1195f02 100644 --- a/contact/forms.py +++ b/contact/forms.py @@ -46,7 +46,7 @@ class ContactForm(forms.Form): contact = Contact.objects.create(body=body, ip=request.META['REMOTE_ADDR'], contact=self.cleaned_data['contact'], - form_tag=self.save_as_tag) + form_tag=save_as_tag) for name, value in self.cleaned_data.items(): if isinstance(value, UploadedFile): attachment = Attachment(contact=contact, tag=name) -- 2.20.1