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/d/j/django-passbook-0.1.0dev/django_passbook/views.py   django-passbook(Download)
def registrations(request, device_library_id, pass_type_id):
 
    passes = Pass.objects.filter(registration__device_library_identifier=device_library_id,
                                 pass_type_identifier=pass_type_id)
    if passes.count() == 0:
def register_pass(request, device_library_id, pass_type_id, serial_number):
 
    pazz = get_object_or_404(
        Pass.objects.filter(pass_type_identifier=pass_type_id,
                            serial_number=serial_number))
def latest_version(request, pass_type_id, serial_number):
 
    pass_ = get_object_or_404(
        Pass.objects.filter(pass_type_identifier=pass_type_id,
                            serial_number=serial_number))

src/d/j/django-passbook-HEAD/django_passbook/views.py   django-passbook(Download)
    """
    passes = Pass.objects.filter(
        registration__device_library_identifier=device_library_id,
        pass_type_identifier=pass_type_id
    )