From nobody Tue May 13 13:07:57 2025 Delivered-To: importer2@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1557925108; cv=none; d=zoho.com; s=zohoarc; b=RgCSQlgWBz32K/mYACNo259EY7jWFfsRLdwx7EtwwPmpEMxwCDfhFngkWrFeY8qYQf0Y9Fy7GgBBCGtX/Ljj4gRVSZF8FNXLjY2RDWtBrS5N7sSK16Yt8jWOvfdU8afS7wx5Hf+P5QBe7RPKxbKhDGrAau2KdtiZpsU86hVTg/4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1557925108; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=kTpXiwoC3bf+kLr3uGPkDHYuWI2r9iKAIqFC2EhaPGs=; b=eIazy/ufUe6Anfgjd04HF19+PQsTqS3ZK4sFqHMzFMm2fxSLsY3i8oMcx7R5CIXUqUQm9+XbfsQ8zWpdbYgJtFMscaDqpbAoGyYaY6sGdQ9VeCgc6Qihs83wVGGWzcpNjdsL716AOdZHL5TL1rUSN+g5IxRf8pO6qYK1MFID2uc= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1557925108169733.1053436590329; Wed, 15 May 2019 05:58:28 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 187843082A2A; Wed, 15 May 2019 12:58:27 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0E7DE1995D; Wed, 15 May 2019 12:58:27 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 05F3418089CB; Wed, 15 May 2019 12:58:27 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x4FCwPwb012640 for ; Wed, 15 May 2019 08:58:25 -0400 Received: by smtp.corp.redhat.com (Postfix) id DC1FE60CC0; Wed, 15 May 2019 12:58:25 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-34.ams2.redhat.com [10.36.112.34]) by smtp.corp.redhat.com (Postfix) with ESMTP id 144E260E39 for ; Wed, 15 May 2019 12:58:21 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Wed, 15 May 2019 14:57:59 +0200 Message-Id: <20190515125808.27716-3-pbonzini@redhat.com> In-Reply-To: <20190515125808.27716-1-pbonzini@redhat.com> References: <20190515125808.27716-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH 02/11] rest: switch pagination to limit/offset X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.45]); Wed, 15 May 2019 12:58:27 +0000 (UTC) Content-Type: text/plain; charset="utf-8" This will come in handy to fetch only one unapplied series in the importer. --- patchew/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchew/settings.py b/patchew/settings.py index 4e10b44..c5b5295 100644 --- a/patchew/settings.py +++ b/patchew/settings.py @@ -68,7 +68,7 @@ REST_FRAMEWORK =3D { 'rest_framework.authentication.TokenAuthentication', 'rest_framework.authentication.SessionAuthentication', ), - 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.PageNumberPagin= ation', + 'DEFAULT_PAGINATION_CLASS': 'rest_framework.pagination.LimitOffsetPagi= nation', 'URL_FIELD_NAME': 'resource_uri', 'PAGE_SIZE': 50, 'UPLOADED_FILES_USE_URL': True, --=20 2.21.0 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel