'Run sending some notifications'

def send_notifications(self):

    now = datetime.now()
    if (self.next_daily <= now):
        notes = NotificationSetting.objects.filter(next_date__lte=now.date(), enabled=True)
        for note in notes:
            query = Q()
            for module in note.modules.all():
                query = (query | Q(about__object_type__icontains=module.name))
            query = ((query & Q(date_created__gte=note.last_datetime)) & (Q(author=note.owner_id) | Q(recipients=note.owner_id)))
            self.send_notification(note, UpdateRecord.objects.filter(query).distinct().order_by('url', '-date_created'))
            note.update_date(now)
        self.next_daily = (datetime(now.year, now.month, now.day) + timedelta(days=1))
