Skip to content

Commit

Permalink
Increase the title character limit to 500 for conversations
Browse files Browse the repository at this point in the history
  • Loading branch information
sabaimran committed Nov 12, 2024
1 parent f05e64c commit b6714c2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
17 changes: 17 additions & 0 deletions src/khoj/database/migrations/0074_alter_conversation_title.py
Original file line number Diff line number Diff line change
@@ -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),
),
]
2 changes: 1 addition & 1 deletion src/khoj/database/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -463,7 +463,7 @@ class Conversation(BaseModel):
slug = models.CharField(max_length=200, default=None, null=True, blank=True)

# 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)
file_filters = models.JSONField(default=list)
id = models.UUIDField(default=uuid.uuid4, editable=False, unique=True, primary_key=True, db_index=True)
Expand Down

0 comments on commit b6714c2

Please sign in to comment.