import json
from myslice.theme import ThemeView
+
+import activity.user
+
theme = ThemeView()
# splitting the 2 functions done here
## we don't need it cz the new ticketing systems sends a confirmation email ###
#if cc_myself:
# recipients.append(email)
- #recipients = ['support@myslice.info']
theme.template_name = 'contact_support_email.html'
html_content = render_to_string(theme.template, form.cleaned_data)
username = request.user.email
else :
username = None
+ # log user activity
+ activity.user.contact(self.request)
return render(request,'contact_sent.html', { 'theme' : self.theme, 'username': username}) # Redirect after POST
else:
return self._display (request, form)