Skip to content

Commit

Permalink
fix: Limit project titles to 120 characters (#902)
Browse files Browse the repository at this point in the history
* fix: set max project title to 120 character
  • Loading branch information
paulschreiber authored Oct 18, 2023
1 parent 602ff8f commit a8ae1e3
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright © 2023 Technology Matters
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see https://www.gnu.org/licenses/.

# Generated by Django 4.2.6 on 2023-10-16 18:22

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("project_management", "0019_project_seen_by_site_seen_by"),
]

operations = [
migrations.AlterField(
model_name="project",
name="name",
field=models.CharField(max_length=120),
),
]
2 changes: 1 addition & 1 deletion terraso_backend/apps/project_management/models/projects.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ class Meta(BaseModel.Meta):

PRIVACY_STATUS = ((PRIVATE, _("Private")), (PUBLIC, _("Public")))

name = models.CharField(max_length=200)
name = models.CharField(max_length=120)
description = models.CharField(max_length=512, default="", blank=True)
membership_list = models.OneToOneField(ProjectMembershipList, on_delete=models.CASCADE)
privacy = models.CharField(
Expand Down

0 comments on commit a8ae1e3

Please sign in to comment.