Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

articles.InfoBox box_class.

  • Loading branch information...
commit d8200222aaa9df934570256f6761df114f74c0d2 1 parent b020575
@whit whit authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 ella/articles/models.py
View
5 ella/articles/models.py
@@ -6,10 +6,14 @@
from ella.core.models import Publishable
from ella.core.cache import get_cached_list
+from ella.core.box import Box
class InfoBox(models.Model):
"""Defines embedable text model."""
+
+ box_class = Box
+
title = models.CharField(_('Title'), max_length=255)
created = models.DateTimeField(_('Created'), default=datetime.now, editable=False)
updated = models.DateTimeField(_('Updated'), blank=True, null=True)
@@ -23,6 +27,7 @@ class Meta:
verbose_name = _('Info box')
verbose_name_plural = _('Info boxes')
+
class Article(Publishable):
"""Defines article model."""
upper_title = models.CharField(_('Upper title'), max_length=255, blank=True)
Please sign in to comment.
Something went wrong with that request. Please try again.