From 1f0813ca7e8a15d10fcdaad1a5d66b7eec28dedb Mon Sep 17 00:00:00 2001 From: Nick Pope Date: Tue, 5 Dec 2017 09:52:21 +0000 Subject: [PATCH] Fixed string format specifier for fillfactor in GistIndex. --- django/contrib/postgres/indexes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/contrib/postgres/indexes.py b/django/contrib/postgres/indexes.py index a5c127e942..677c63b4a2 100644 --- a/django/contrib/postgres/indexes.py +++ b/django/contrib/postgres/indexes.py @@ -96,5 +96,5 @@ class GistIndex(PostgresIndex): if self.buffering is not None: with_params.append('buffering = %s' % ('on' if self.buffering else 'off')) if self.fillfactor is not None: - with_params.append('fillfactor = %s' % self.fillfactor) + with_params.append('fillfactor = %d' % self.fillfactor) return with_params