mirror of
https://gitlab.com/bramw/baserow.git
synced 2025-04-06 22:08:52 +00:00
Fix filter value max length bug
This commit is contained in:
parent
94cbbd323a
commit
490d10626c
3 changed files with 38 additions and 4 deletions
backend/src/baserow/contrib/database
changelog/entries/unreleased/bug
|
@ -0,0 +1,28 @@
|
|||
# Generated by Django 5.0.13 on 2025-03-27 10:37
|
||||
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
dependencies = [
|
||||
("database", "0185_alter_ratingfield_style"),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AlterField(
|
||||
model_name="formviewfieldoptionscondition",
|
||||
name="value",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="The filter value that must be compared to the field's value.",
|
||||
),
|
||||
),
|
||||
migrations.AlterField(
|
||||
model_name="viewfilter",
|
||||
name="value",
|
||||
field=models.TextField(
|
||||
blank=True,
|
||||
help_text="The filter value that must be compared to the field's value.",
|
||||
),
|
||||
),
|
||||
]
|
|
@ -397,8 +397,7 @@ class ViewFilter(HierarchicalModelMixin, models.Model):
|
|||
"value. The filter is always in this order `field` `type` `value` "
|
||||
"(example: `field_1` `contains` `Test`).",
|
||||
)
|
||||
value = models.CharField(
|
||||
max_length=255,
|
||||
value = models.TextField(
|
||||
blank=True,
|
||||
help_text="The filter value that must be compared to the field's value.",
|
||||
)
|
||||
|
@ -937,8 +936,7 @@ class FormViewFieldOptionsCondition(HierarchicalModelMixin, models.Model):
|
|||
"value. The filter is always in this order `field` `type` `value` "
|
||||
"(example: `field_1` `contains` `Test`).",
|
||||
)
|
||||
value = models.CharField(
|
||||
max_length=255,
|
||||
value = models.TextField(
|
||||
blank=True,
|
||||
help_text="The filter value that must be compared to the field's value.",
|
||||
)
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"type": "bug",
|
||||
"message": "Fixed bug where the backend fails hard if the filter value exceeds 255 characters.",
|
||||
"domain": "database",
|
||||
"issue_number": null,
|
||||
"bullet_points": [],
|
||||
"created_at": "2025-03-27"
|
||||
}
|
Loading…
Add table
Reference in a new issue