Skip to content

Commit 7547bd0

Browse files
authored
Merge pull request #90 from PROCOLLAB-github/dev
Increased the length of the project short description
2 parents 6ed76e1 + afa2d77 commit 7547bd0

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

projects/managers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def get_user_projects_for_list_view(self):
5252
queryset=CustomUser.objects.only("id").all(),
5353
),
5454
Prefetch("collaborator_set"),
55-
)
55+
).distinct()
5656

5757
def get_projects_for_detail_view(self):
5858
return (

projects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ class Project(models.Model):
6666
objects = ProjectManager()
6767

6868
def get_short_description(self) -> Optional[str]:
69-
return self.description[:30] if self.description else None
69+
return self.description[:90] if self.description else None
7070

7171
def save(
7272
self, force_insert=False, force_update=False, using=None, update_fields=None

0 commit comments

Comments
 (0)