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

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

src/e/a/easy-transifex-HEAD/src/transifex/transifex/addons/watches/models.py   easy-transifex(Download)
 
    ctype = ContentType.objects.get_for_model(self)
    observed_items = ObservedItem.objects.filter(content_type=ctype,
        object_id=self.id, user=user)
    if observed_items:

src/t/r/transifex-HEAD/transifex/addons/watches/models.py   transifex(Download)
 
    ctype = ContentType.objects.get_for_model(self)
    observed_items = ObservedItem.objects.filter(content_type=ctype,
        object_id=self.id, user=user)
    if observed_items:

src/p/i/pinax-tracker-HEAD/apps/dashboard/templatetags/dashboard_tags.py   pinax-tracker(Download)
    notice_type = NoticeType.objects.get(label='task_observed_task_changed')
    content_type = ContentType.objects.get_for_model(Task)
    val = ObservedItem.objects.filter(content_type=content_type,
                                notice_type=notice_type,
                                user=user)

src/e/c/econsensus-HEAD/django/econsensus/publicweb/models.py   econsensus(Download)
            for comment in feedback.comments.all():
                comment_watchers = notification.ObservedItem.objects.filter(
                    content_type = ContentType.objects.get(name='comment'),
                    object_id = comment.id)
                comment_watchers.delete()