increased slug field length (default is 50)

This commit is contained in:
Petr Klus 2016-05-02 17:00:45 +02:00
parent 40c240ace9
commit bde1f1f3ae

View file

@ -63,7 +63,7 @@ class BlogCategory(TranslatableModel):
translations = TranslatedFields( translations = TranslatedFields(
name=models.CharField(_('name'), max_length=255), 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'),)} meta={'unique_together': (('language_code', 'slug'),)}
) )
@ -146,7 +146,7 @@ class Post(KnockerModel, ModelMeta, TranslatableModel):
translations = TranslatedFields( translations = TranslatedFields(
title=models.CharField(_('title'), max_length=255), 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=''), abstract=HTMLField(_('abstract'), blank=True, default=''),
meta_description=models.TextField(verbose_name=_('post meta description'), meta_description=models.TextField(verbose_name=_('post meta description'),
blank=True, default=''), blank=True, default=''),