Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(8)  |  Call(1)  |  Derive(0)  |  Import(7)

src/v/o/vosae-app-HEAD/www/invoicing/tasks.py   vosae-app(Download)
def invoicebase_deleted_task(document):
    from timeline.models import TimelineEntry
    from notification.models import Notification
    if document.is_quotation():
        TimelineEntry.objects.filter(tenant=document.tenant, quotation=document).delete()

src/v/o/vosae-app-HEAD/www/notification/api/resources/notification_resource.py   vosae-app(Download)
from notification.api.resources.base import NotificationBaseResource
from notification.api.resources import contacts_notifications, invoicing_notifications, organizer_notifications
from notification.models import Notification
 
 

src/v/o/vosae-app-HEAD/www/notification/api/resources/base.py   vosae-app(Download)
 
from core.api.utils import TenantResource
from notification.models import Notification
from notification.api.doc import HELP_TEXT
 

src/v/o/vosae-app-HEAD/www/notification/migrations/0002_date_and_datetime_fields.py   vosae-app(Download)
# -*- coding: utf-8 -*-
 
from south.v2 import DataMigration
from notification.models import Notification
 

src/a/e/aemanager-HEAD/autoentrepreneur/models.py   aemanager(Download)
from accounts.models import Invoice
from django.db.models.expressions import F
from notification.models import Notification
 
AUTOENTREPRENEUR_ACTIVITY_PRODUCT_SALE_BIC = 1
def user_post_save(sender, instance, created, **kwargs):
    if created and not kwargs.get('raw', False):
        notification = Notification()
        notification.user = instance
        notification.save()

src/a/e/aemanager-HEAD/notification/forms.py   aemanager(Download)
from django.forms import ModelForm
from notification.models import Notification
 
class NotificationForm(ModelForm):
    class Meta:

src/a/e/aemanager-HEAD/notification/tests.py   aemanager(Download)
from django.test import TestCase
from django.contrib.auth.models import User
from django.core.urlresolvers import reverse
from notification.models import Notification
from project.models import Proposal, PROPOSAL_STATE_ACCEPTED