jones-dev #19

Merged
corbz merged 106 commits from jones-dev into master 2024-01-26 17:39:03 +00:00
Showing only changes of commit bd57cfb94d - Show all commits

View File

@ -103,6 +103,12 @@ class Ticket(models.Model):
)
return cleaned_description
def short_description(self):
"""Provide a snippet of the description for presentation purposes."""
short_description = bleach.clean(self.description, tags=[])[:150]
return f"{short_description}..."
def save(self, *args, **kwargs):
"""Override the save method to clean the description and apply timestamps."""