mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-05 23:18:53 -05:00
Updated the title splicing length to 100 in playlist, category and media models (#1364)
This commit is contained in:
parent
e33aa17911
commit
6cee02085c
@ -138,7 +138,7 @@ class Tag(models.Model):
|
||||
|
||||
def save(self, *args, **kwargs):
|
||||
self.title = helpers.get_alphanumeric_only(self.title)
|
||||
self.title = self.title[:99]
|
||||
self.title = self.title[:100]
|
||||
super(Tag, self).save(*args, **kwargs)
|
||||
|
||||
@property
|
||||
|
||||
@ -245,7 +245,7 @@ class Media(models.Model):
|
||||
strip_text_items = ["title", "description"]
|
||||
for item in strip_text_items:
|
||||
setattr(self, item, strip_tags(getattr(self, item, None)))
|
||||
self.title = self.title[:99]
|
||||
self.title = self.title[:100]
|
||||
|
||||
# if thumbnail_time specified, keep up to single digit
|
||||
if self.thumbnail_time:
|
||||
|
||||
@ -64,7 +64,7 @@ class Playlist(models.Model):
|
||||
strip_text_items = ["title", "description"]
|
||||
for item in strip_text_items:
|
||||
setattr(self, item, strip_tags(getattr(self, item, None)))
|
||||
self.title = self.title[:99]
|
||||
self.title = self.title[:100]
|
||||
|
||||
if not self.friendly_token:
|
||||
while True:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user