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

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

src/m/y/myewb2-HEAD/myewb/apps/conference/sms.py   myewb2(Download)
                registrations = ConferenceRegistration.objects.filter(~Q(type__contains='single'), ~Q(type__contains='double'))
 
            registrations = registrations.filter(cancelled=False, cellphone__isnull=False, cellphone_optout__isnull=True)
 
            if not s and form.cleaned_data['grouping'] == 'all':

src/a/r/archweb-HEAD/mirrors/utils.py   archweb(Download)
 
    if mirror_id:
        errors = errors.filter(url__mirror_id=mirror_id)
    if not show_all:
        errors = errors.filter(url__active=True, url__mirror__active=True,

src/e/s/ESP-Website-HEAD/esp/esp/program/models/class_.py   ESP-Website(Download)
 
        if not force_all:
            classes = classes.filter(self.approved(return_q_obj=True))
 
        classes = classes.select_related('category')
 
        if program != None:
            classes = classes.filter(parent_program = program)
 
        if ts is not None:
            classes = classes.filter(sections__meeting_times=ts)
 
        #   Retrieve the content type for finding class documents (generic relation)

src/n/o/noc-0.7(3)/fm/apps/event/views.py   noc(Download)
                    page = form.cleaned_data["page"] - 1
                if form.cleaned_data["from_time"]:
                    events = events.filter(timestamp__gte=form.cleaned_data["from_time"])
                if form.cleaned_data["to_time"]:
                    events = events.filter(timestamp__lte=form.cleaned_data["to_time"])
                if form.cleaned_data["managed_object"]:
                    try:
                        mo = ManagedObject.objects.get(name=form.cleaned_data["managed_object"])
                        events = events.filter(managed_object=mo.id)
                        pass
                if status in ("A", "C") and "event_class" in form.cleaned_data and form.cleaned_data["event_class"]:
                    events = events.filter(event_class=form.cleaned_data["event_class"].id)
            else:
                return self.render_json({"error": str(form.errors)})

src/d/j/django-facebook-5.3.1/django_facebook/model_managers.py   django-facebook(Download)
        shares = self.shares_for_instance(content_object, user)
        shares = shares.filter(
            completed_at__isnull=False, removed_at__isnull=True)
        shares = list(shares[:1000])
        logger.info('found %s shares to remove', len(shares))

src/d/j/Django-facebook-HEAD/django_facebook/model_managers.py   Django-facebook(Download)
        shares = self.shares_for_instance(content_object, user)
        shares = shares.filter(
            completed_at__isnull=False, removed_at__isnull=True)
        shares = list(shares[:1000])
        logger.info('found %s shares to remove', len(shares))

src/t/e/tendenci-5.1.333/tendenci/addons/corporate_memberships/views.py   tendenci(Download)
    app_fields = app.fields.filter(display=True)
    if not is_superuser:
        app_fields = app_fields.filter(admin_only=False)
    if not can_edit:
        app_fields = app_fields.exclude(field_name__in=[
    field_objs = corp_app.fields.filter(visible=1)
    if not user_is_superuser:
        field_objs = field_objs.filter(admin_only=0)
 
    field_objs = list(field_objs.order_by('position'))
    field_objs = corp_app.fields.filter(visible=1)
    if not user_is_superuser:
        field_objs = field_objs.filter(admin_only=0)
 
    field_objs = list(field_objs.order_by('position'))
    field_objs = corporate_membership.corp_app.fields.filter(visible=1)
    if not user_is_superuser:
        field_objs = field_objs.filter(admin_only=0)
    if not can_edit:
        field_objs = field_objs.exclude(field_name='corporate_membership_type')

src/k/a/ka-lite-HEAD/kalite/control_panel/views.py   ka-lite(Download)
    # filter results
    if period_start:
        exercise_logs = exercise_logs.filter(completion_timestamp__gte=period_start)
        video_logs = video_logs.filter(completion_timestamp__gte=period_start)
        login_logs = login_logs.filter(start_datetime__gte=period_start)
    if period_end:
        exercise_logs = exercise_logs.filter(completion_timestamp__lte=period_end)
        video_logs = video_logs.filter(completion_timestamp__lte=period_end)

src/n/n/nnmware-HEAD/core/templatetags/core.py   nnmware(Download)
        result = result.exclude(users_viewed=user)
    if category is not None:
        result = result.filter(tags=category)
    if mode == 'popular':
        result = list(result.order_by('-viewcount')[:2])

src/s/k/skoljka-HEAD/apps/search/utils.py   skoljka(Download)
        return Task.objects.none()
 
    tasks = tasks.filter(search_cache_elements__cache=cache)
 
    filters = {}
 
    if filters:
        tasks = tasks.filter(**filters)
 
    if kwargs.get('groups'):

  1 | 2 | 3 | 4 | 5  Next