mirror of
https://github.com/Hopiu/wagtail.git
synced 2026-05-11 16:53:10 +00:00
Improves Flake8 happiness.
This commit is contained in:
parent
379c027e1e
commit
7915a8b127
2 changed files with 2 additions and 5 deletions
|
|
@ -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':
|
||||
|
|
|
|||
|
|
@ -1,6 +1,3 @@
|
|||
# coding: utf-8
|
||||
import unittest
|
||||
|
||||
from django.test import TestCase
|
||||
|
||||
from wagtail.search.tests.test_backends import QueryAPITestMixin, BackendTests
|
||||
|
|
|
|||
Loading…
Reference in a new issue