Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search lookup.

This commit is contained in:
Baptiste Mispelon 2020-03-04 13:33:12 +01:00 committed by Mariusz Felisiak
parent 924c01ba09
commit 3baf92cf82
6 changed files with 43 additions and 4 deletions

View file

@ -139,6 +139,11 @@ class Line(PostgreSQLModel):
return self.dialogue or ''
class LineSavedSearch(PostgreSQLModel):
line = models.ForeignKey('Line', models.CASCADE)
query = models.CharField(max_length=100)
class RangesModel(PostgreSQLModel):
ints = IntegerRangeField(blank=True, null=True)
bigints = BigIntegerRangeField(blank=True, null=True)