mirror of
https://github.com/django/django.git
synced 2025-07-19 19:25:26 +00:00
Fixed #31340 -- Allowed query expressions in SearchQuery.value and __search lookup.
This commit is contained in:
parent
924c01ba09
commit
3baf92cf82
6 changed files with 43 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue