From bde1f1f3ae00481ad276ee60788019e75d56e708 Mon Sep 17 00:00:00 2001 From: Petr Klus Date: Mon, 2 May 2016 17:00:45 +0200 Subject: [PATCH] increased slug field length (default is 50) --- djangocms_blog/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/djangocms_blog/models.py b/djangocms_blog/models.py index bc0cad9..bec55cb 100644 --- a/djangocms_blog/models.py +++ b/djangocms_blog/models.py @@ -63,7 +63,7 @@ class BlogCategory(TranslatableModel): translations = TranslatedFields( name=models.CharField(_('name'), max_length=255), - slug=models.SlugField(_('slug'), blank=True, db_index=True), + slug=models.SlugField(_('slug'), max_length=255, blank=True, db_index=True), meta={'unique_together': (('language_code', 'slug'),)} ) @@ -146,7 +146,7 @@ class Post(KnockerModel, ModelMeta, TranslatableModel): translations = TranslatedFields( title=models.CharField(_('title'), max_length=255), - slug=models.SlugField(_('slug'), blank=True, db_index=True), + slug=models.SlugField(_('slug'), max_length=255, blank=True, db_index=True), abstract=HTMLField(_('abstract'), blank=True, default=''), meta_description=models.TextField(verbose_name=_('post meta description'), blank=True, default=''),