def browse_ip_write_apis(request, database_name=None, collection_name=None):
    """Deprecated"""
    name = "Write APIs Using IP-based Authentication"
    if database_name and collection_name:
        wapis = WriteAPIIP.objects.filter(
            database_name=database_name,
            collection_name=collection_name)
    else:
        wapis = WriteAPIIP.objects.all()
    context = {'name': name, 'wapis': wapis,
               'database_name': database_name,
               'collection_name': collection_name}
    return render(
        request,
        'djmongo/console/browse-ip-write-apis.html',
        context)
def browse_ip_write_apis ( request , database_name = None , collection_name = None ) : name = "Write APIs Using IP-based Authentication" if database_name and collection_name : wapis = WriteAPIIP . objects . filter ( database_name = database_name , collection_name = collection_name ) else : wapis = WriteAPIIP . objects . all ( ) context = { 'name' : name , 'wapis' : wapis , 'database_name' : database_name , 'collection_name' : collection_name } return render ( request , 'djmongo/console/browse-ip-write-apis.html' , context )
Deprecated