Increase the title character limit to 500 for conversations

This commit is contained in:
sabaimran 2024-11-12 01:51:19 -08:00
parent f05e64cf8c
commit b6714c202f
2 changed files with 18 additions and 1 deletions

View file

@ -0,0 +1,17 @@
# Generated by Django 5.0.9 on 2024-11-12 09:50
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
("database", "0073_delete_usersearchmodelconfig"),
]
operations = [
migrations.AlterField(
model_name="conversation",
name="title",
field=models.CharField(blank=True, default=None, max_length=500, null=True),
),
]

View file

@ -463,7 +463,7 @@ class Conversation(BaseModel):
slug = models.CharField(max_length=200, default=None, null=True, blank=True) slug = models.CharField(max_length=200, default=None, null=True, blank=True)
# The title field is explicitly set by the user. # The title field is explicitly set by the user.
title = models.CharField(max_length=200, default=None, null=True, blank=True) title = models.CharField(max_length=500, default=None, null=True, blank=True)
agent = models.ForeignKey(Agent, on_delete=models.SET_NULL, default=None, null=True, blank=True) agent = models.ForeignKey(Agent, on_delete=models.SET_NULL, default=None, null=True, blank=True)
file_filters = models.JSONField(default=list) file_filters = models.JSONField(default=list)
id = models.UUIDField(default=uuid.uuid4, editable=False, unique=True, primary_key=True, db_index=True) id = models.UUIDField(default=uuid.uuid4, editable=False, unique=True, primary_key=True, db_index=True)