1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Fixes #11046: Restrict length of indexed search values (#11076)

* Fixes #11046: Restrict length of indexed search values

* Reference constant in index declaration

* Remove index from CachedValue.value
This commit is contained in:
Jeremy Stretch
2022-12-02 10:07:53 -05:00
committed by GitHub
parent 2577f3a786
commit 52cf9086a5
2 changed files with 3 additions and 4 deletions

View File

@@ -36,9 +36,7 @@ class CachedValue(models.Model):
type = models.CharField(
max_length=30
)
value = models.TextField(
db_index=True
)
value = models.TextField()
weight = models.PositiveSmallIntegerField(
default=1000
)