Scheduler: adding/removing resources enforce warnings and recount number of unconfigu...
[myslice.git] / portal / contactview.py
index b076cd9..19cc1b9 100644 (file)
@@ -11,6 +11,9 @@ from manifoldapi.manifoldapi            import execute_query
 import json
 
 from myslice.theme import ThemeView
+
+import activity.user
+
 theme = ThemeView()
 
 # splitting the 2 functions done here
@@ -40,7 +43,6 @@ class ContactView (FreeAccessView, ThemeView):
             ## 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)
         
@@ -68,6 +70,8 @@ class ContactView (FreeAccessView, ThemeView):
                 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)