mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-26 01:06:11 -06:00
Reference constant in index declaration
This commit is contained in:
parent
2d49fc2521
commit
774b154e47
@ -53,13 +53,13 @@ class CachedValue(models.Model):
|
||||
Index(
|
||||
fields=['value'],
|
||||
name='extras_cachedvalue_value',
|
||||
condition=Q(LessThan(Length('value'), 1024))
|
||||
condition=Q(LessThan(Length('value'), INDEX_MAX))
|
||||
),
|
||||
Index(
|
||||
fields=['value'],
|
||||
name='extras_cachedvalue_value_like',
|
||||
opclasses=['text_pattern_ops'],
|
||||
condition=Q(LessThan(Length('value'), 1024))
|
||||
condition=Q(LessThan(Length('value'), INDEX_MAX))
|
||||
),
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user