Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

channel_folders: Update MAX_NAME_LENGTH to 60.

Sahil Batra6186df4f7224
diff --git a/zerver/migrations/0744_alter_channelfolder_name.py b/zerver/migrations/0744_alter_channelfolder_name.py
new file mode 100644
index 00000000000..3aef434c077
--- /dev/null
+++ b/zerver/migrations/0744_alter_channelfolder_name.py
@@ -0,0 +1,17 @@
+# Generated by Django 5.2.4 on 2025-07-28 07:42
+
+from django.db import migrations, models
+
+
+class Migration(migrations.Migration):
+ dependencies = [
+ ("zerver", "0743_realm_require_e2ee_push_notifications"),
+ ]
+
+ operations = [
+ migrations.AlterField(
+ model_name="channelfolder",
+ name="name",
+ field=models.CharField(max_length=60),
+ ),
+ ]
diff --git a/zerver/models/channel_folders.py b/zerver/models/channel_folders.py
index 9a9e61f219d..6e5f84cec22 100644
--- a/zerver/models/channel_folders.py
+++ b/zerver/models/channel_folders.py
@@ -6,7 +6,7 @@ from zerver.models.users import UserProfile
class ChannelFolder(models.Model):
- MAX_NAME_LENGTH = 100
+ MAX_NAME_LENGTH = 60
MAX_DESCRIPTION_LENGTH = 1024
realm = models.ForeignKey(Realm, on_delete=models.CASCADE)