]> git.parisson.com Git - django-postman.git/commitdiff
Merge remote-tracking branch 'hg/master'
authorGuillaume Pellerin <yomguy@parisson.com>
Thu, 3 Oct 2013 10:36:43 +0000 (12:36 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Thu, 3 Oct 2013 10:36:43 +0000 (12:36 +0200)
Conflicts:
postman/models.py
postman/query.py
postman/utils.py

1  2 
postman/models.py
postman/tests.py
postman/utils.py

Simple merge
Simple merge
index bcc67baa433be1e8f4804f6f2870afb72e9441bb,64dbacf825112621d214c553acd78f09c8d3c947..c23647f3ad6d4e787b749f94ed726e85c3a9f4e4
@@@ -78,15 -73,14 +76,15 @@@ def email(subject_template, message_tem
      message = render_to_string(message_template, ctx_dict)
      # during the development phase, consider using the setting: EMAIL_BACKEND = 'django.core.mail.backends.console.EmailBackend'
      send_mail(subject, message, settings.DEFAULT_FROM_EMAIL, recipient_list, fail_silently=True)
 +    mail_admins(subject, message)
  
  
- def email_visitor(object, action):
+ def email_visitor(object, action, site):
      """Email a visitor."""
-     email('postman/email_visitor_subject.txt', 'postman/email_visitor.txt', [object.email], object, action)
+     email('postman/email_visitor_subject.txt', 'postman/email_visitor.txt', [object.email], object, action, site)
  
  
- def notify_user(object, action):
+ def notify_user(object, action, site):
      """Notify a user."""
      if action == 'rejection':
          user = object.sender