mirror of
https://github.com/zulip/zulip.git
synced 2025-11-06 15:03:34 +00:00
Truncate the tutorial stream name to fit the DB max stream name length.
(imported from commit e267656337f97d3ea14e14e957a405cf4fd2d06c)
This commit is contained in:
@@ -102,7 +102,8 @@ class MitUser(models.Model):
|
||||
status = models.IntegerField(default=0)
|
||||
|
||||
class Stream(models.Model):
|
||||
name = models.CharField(max_length=30, db_index=True)
|
||||
MAX_NAME_LENGTH = 30
|
||||
name = models.CharField(max_length=MAX_NAME_LENGTH, db_index=True)
|
||||
realm = models.ForeignKey(Realm, db_index=True)
|
||||
invite_only = models.NullBooleanField(default=False)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user