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

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

src/a/r/archfinch-HEAD/users/views.py   archfinch(Download)
 
    if category_slug is not None and category_slug:
        category = Category.objects.get(slug=category_slug)
    else:
        category = None

src/a/r/archfinch-HEAD/main/views.py   archfinch(Download)
            new = True
        else:
            category = Category.objects.get(slug=category_slug)
    elif followed:
        fresh = True

src/a/r/archfinch-HEAD/search/views.py   archfinch(Download)
        try:
            category = Category.objects.get(
                Q(name__iexact=cat_name)|Q(element_singular__iexact=cat_name)|Q(element_plural__iexact=cat_name)|Q(slug__iexact=cat_name)
            )
            results = results.filter(category_id=category.id)