Improves Flake8 happiness.

This commit is contained in:
Bertrand Bordage 2018-01-03 20:49:48 +01:00
parent 379c027e1e
commit 7915a8b127
2 changed files with 2 additions and 5 deletions

View file

@ -249,8 +249,8 @@ class PostgresSearchQueryCompiler(BaseSearchQueryCompiler):
return queryset[start:stop]
def _process_lookup(self, field, lookup, value):
return Q(**{field.get_attname(self.queryset.model)
+ '__' + lookup: value})
return Q(**{field.get_attname(self.queryset.model) +
'__' + lookup: value})
def _connect_filters(self, filters, connector, negated):
if connector == 'AND':

View file

@ -1,6 +1,3 @@
# coding: utf-8
import unittest
from django.test import TestCase
from wagtail.search.tests.test_backends import QueryAPITestMixin, BackendTests