from django.db import models
from django.utils.translation import ugettext_lazy as _
from ssify import flush_ssi_includes
from django.db import models
from django.utils.translation import ugettext_lazy as _
from ssify import flush_ssi_includes
title = models.CharField(_('title'), max_length=120, db_index=True)
slug = models.SlugField(_('slug'), max_length=120, primary_key=True)
description = models.TextField(_('description'), null=True, blank=True)
title = models.CharField(_('title'), max_length=120, db_index=True)
slug = models.SlugField(_('slug'), max_length=120, primary_key=True)
description = models.TextField(_('description'), null=True, blank=True)
-
- kind = models.CharField(_('kind'), max_length=10, blank=False, default='book', db_index=True, choices=((('book'), _('book')), (('picture'), ('picture'))))
+ kind = models.CharField(_('kind'), max_length=10, blank=False, default='book', db_index=True,
+ choices=(('book', _('book')), ('picture', _('picture'))))