From 0dd9dcd5dd23b010ce0e14101793b902e5426eb0 Mon Sep 17 00:00:00 2001 From: www-data Date: Thu, 10 May 2018 11:21:54 +0300 Subject: [PATCH] Disable notification --- abonapp/templates/abonapp/peoples.html | 8 ++++---- taskapp/models.py | 17 +++++++++-------- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/abonapp/templates/abonapp/peoples.html b/abonapp/templates/abonapp/peoples.html index dfc7eb2..93e8e46 100644 --- a/abonapp/templates/abonapp/peoples.html +++ b/abonapp/templates/abonapp/peoples.html @@ -53,7 +53,7 @@ {% if order_by == 'house' %}{% endif %} - {% trans 'Telephone' %} + {% trans 'Telephone' %} {% trans 'Service' %} @@ -62,7 +62,7 @@ {% if order_by == 'ballance' %}{% endif %} {% trans 'Markers' %} - # + # @@ -95,7 +95,7 @@ {{ human.fio }} {{ human.street|default:_('Not assigned') }} {{ human.house|default:'-' }} - {{ human.telephone }} + {{ human.telephone }} {% if human.current_tariff %} {% if can_ch_trf %} @@ -111,7 +111,7 @@ {% for user_icon in human.get_flag_icons %} {% endfor %} - + {% if can_del_abon %} diff --git a/taskapp/models.py b/taskapp/models.py index 0dfcacf..929264f 100644 --- a/taskapp/models.py +++ b/taskapp/models.py @@ -100,14 +100,15 @@ class Task(models.Model): self.save(update_fields=('state',)) def send_notification(self): - if self.abon: - group = self.abon.group - else: - group = '' - task_handle( - self, self.author, - self.recipients.all(), group - ) + pass + #if self.abon: + # group = self.abon.group + #else: + # group = '' + #task_handle( + # self, self.author, + # self.recipients.all(), group + #) def get_attachment_fname(self): return os.path.basename(self.attachment.name)